-
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathvitest.config.mjs
More file actions
37 lines (36 loc) · 962 Bytes
/
vitest.config.mjs
File metadata and controls
37 lines (36 loc) · 962 Bytes
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';
export default defineConfig({
test: {
environment: 'node',
setupFiles: ['./test/setup.js'],
// Target .test.js and .spec.js files for vitest
// Exclude .test.cjs files — those use node:test (run via npm run test:node)
include: ['test/**/*.{test,spec}.{js,mjs}'],
exclude: ['test/**/*.test.cjs'],
coverage: {
provider: 'v8',
reporter: ['text', 'html', 'lcov'],
reportsDirectory: './coverage',
thresholds: {
lines: 70,
},
exclude: [
'node_modules/**',
'dist/**',
'coverage/**',
'**/*.test.{js,cjs,mjs}',
'**/*.config.{js,cjs,mjs}',
'bin/mgw-install.cjs',
'bin/generate-completions.cjs',
'completions/**',
'templates/**',
'commands/**',
'wiki/**',
'docs/**',
'test/**',
'.planning/**',
'.mgw/**',
],
},
},
});