forked from SmythOS/sre
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathvitest.config.ts
More file actions
37 lines (36 loc) · 1.07 KB
/
vitest.config.ts
File metadata and controls
37 lines (36 loc) · 1.07 KB
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
33
34
35
36
37
import { defineConfig } from 'vitest/config';
import tsconfigPaths from 'vite-tsconfig-paths';
export default defineConfig({
plugins: [tsconfigPaths()],
test: {
globals: true,
environment: 'node',
include: ['packages/*/tests/**/*.test.ts'],
exclude: ['node_modules', 'dist'],
env: {
// ENABLE_INTEGRATION_TESTS: 'true',
},
coverage: {
reporter: ['text', 'text-summary', 'html'],
reportsDirectory: './coverage',
include: ['packages/*/src/**/*.{ts,tsx}'],
exclude: ['node_modules', 'packages/*/dist/**', 'packages/*/tests/**', 'packages/cli/**'],
},
testTimeout: 30000,
pool: 'forks',
poolOptions: {
forks: {
singleFork: false, // Each test file gets its own process for isolation
},
},
// sequence: {
// concurrent: false, // run test files sequentially
// },
},
build: {
sourcemap: 'inline',
},
esbuild: {
sourcemap: true,
},
});