-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathvitest.config.ts
More file actions
46 lines (45 loc) · 1.12 KB
/
vitest.config.ts
File metadata and controls
46 lines (45 loc) · 1.12 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
38
39
40
41
42
43
44
45
46
import { defineConfig } from 'vitest/config';
import tsconfigPaths from 'vite-tsconfig-paths';
export default defineConfig({
plugins: [tsconfigPaths()],
test: {
globals: true,
environment: 'node',
passWithNoTests: true,
setupFiles: ['./tests/setup.ts'],
coverage: {
provider: 'v8',
reporter: ['text', 'json', 'html', 'lcov'],
exclude: [
'node_modules/',
'dist/',
'**/*.config.{ts,js}',
'**/*.d.ts',
'tests/',
'**/index.ts', // Re-export files
],
thresholds: {
lines: 50,
functions: 50,
branches: 50,
statements: 50,
},
},
include: ['tests/**/*.test.ts', 'packages/**/test/**/*.test.ts'],
exclude: [
'node_modules',
'dist',
'build',
// Skip platform-specific tests on Linux
...(process.platform !== 'win32'
? [
'tests/notepad-injection.test.ts',
'tests/multi-inject.test.ts',
'tests/advanced-nthread.test.ts',
'tests/asm.test.ts',
'tests/target.test.ts',
]
: []),
],
},
});