forked from w3f/1k-validators-be
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathvitest.config.mts
32 lines (26 loc) · 844 Bytes
/
vitest.config.mts
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
import {defineConfig} from "vitest/config";
export default defineConfig({
test: {
globals: true,
environment: "node",
testTimeout: 300000,
retry: 5,
setupFiles: ["packages/common/test/vitest.setup.ts"],
coverage: {
provider: 'istanbul', // or 'v8'
exclude: ['/docs/**', 'node_modules/**']
},
// @ts-ignore
common: {
include: ["packages/common/**/*.test.ts"],
setupFiles: ["packages/common/test/vitest.setup.ts"],
exclude: ["node_modules/**", "dist/**", "packages/scorekeeper-status-ui/**", "docs/**"],
},
// @ts-ignore
telemetry: {
include: ["packages/telemetry/**/*.test.ts"],
setupFiles: ["packages/telemetry/test/vitest.setup.ts"],
exclude: ["node_modules/**", "dist/**", "packages/scorekeeper-status-ui/**", "docs/**"],
},
},
});