-
-
Notifications
You must be signed in to change notification settings - Fork 131
/
vitest.config.mts
40 lines (39 loc) · 1.11 KB
/
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
33
34
35
36
37
38
39
40
import { defineConfig } from 'vitest/config';
export default defineConfig({
esbuild: { target: 'es2022' },
test: {
// cspell:ignore tsup
exclude: [
'**/node_modules/**',
'**/dist/**',
'**/cypress/**',
'**/coverage/**',
'**/out/**',
'**/temp/**',
'**/.{idea,git,cache,output,temp}/**',
'**/{karma,rollup,webpack,vite,vitest,jest,ava,babel,nyc,cypress,tsup,build}.config.*',
],
// reporters: 'verbose',
coverage: {
// enabled: true,
provider: 'istanbul',
clean: true,
all: true,
reportsDirectory: 'coverage',
reporter: ['html', 'text', 'json'],
exclude: [
'ajv.config.*',
'bin.mjs',
'bin.js',
'bin.cjs',
'.coverage/**',
'coverage',
'_snapshots_',
'.eslint*',
'vitest*',
'.prettier*',
'**/*.test.*',
],
},
},
});