Skip to content

Commit

Permalink
ci: fixed vitest config
Browse files Browse the repository at this point in the history
  • Loading branch information
prisis committed Jul 22, 2024
1 parent 0e140ac commit bc80e2d
Showing 1 changed file with 22 additions and 5 deletions.
27 changes: 22 additions & 5 deletions vitest.config.ts
Original file line number Diff line number Diff line change
@@ -1,12 +1,29 @@
/// <reference types="vitest" />
import { defineConfig, configDefaults, coverageConfigDefaults } from "vitest/config";

import { defineConfig } from "vitest/config";
const VITEST_SEQUENCE_SEED = Date.now();

console.log("VITEST_SEQUENCE_SEED", VITEST_SEQUENCE_SEED);

// https://vitejs.dev/config/
export default defineConfig({
test: {
environment: "node",
dir: "./__tests__",
testTimeout: 10000,
},
...configDefaults,
coverage: {
...coverageConfigDefaults,
provider: "v8",
reporter: ["clover", "cobertura", "lcov", "text"],
include: ["src"],
exclude: ["__fixtures__/**", "__bench__/**", "scripts/**"],
},
environment: "node",
reporters: process.env["CI_PREFLIGHT"] ? ["basic", "github-actions"] : ["basic"],
sequence: {
seed: VITEST_SEQUENCE_SEED,
},
typecheck: {
enabled: false,
},
exclude: [...configDefaults.exclude, "__fixtures__/**"],
},
});

0 comments on commit bc80e2d

Please sign in to comment.