-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathvitest.config.ts
More file actions
44 lines (43 loc) · 1.28 KB
/
vitest.config.ts
File metadata and controls
44 lines (43 loc) · 1.28 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
import path from 'path';
import { defineConfig } from 'vitest/config';
export default defineConfig({
plugins: [],
test: {
environment: 'node',
coverage: {
provider: 'v8',
// you can include other reporters, but 'json-summary' is required, json is recommended
reporter: ['json-summary', 'json', 'clover', 'text', 'html'],
exclude: [
// ****************************************************
// copy from d.ts BaseCoverageOptions.exclude
'coverage/**',
'dist/**',
'**/[.]**',
'packages/*/test?(s)/**',
'**/*.d.ts',
'**/virtual:*',
'**/__x00__*',
'**/\x00*',
'cypress/**',
'test?(s)/**',
'test?(-*).?(c|m)[jt]s?(x)',
'**/*{.,-}{test,spec}?(-d).?(c|m)[jt]s?(x)',
'**/__tests__/**',
'**/{karma,rollup,webpack,vite,vitest,jest,ava,babel,nyc,cypress,tsup,build}.config.*',
'**/vitest.{workspace,projects}.[jt]s?(on)',
'**/.{eslint,mocha,prettier}rc.{?(c|m)js,yml}',
// ****************************************************
'**/*.config.ts',
'src/app.ts',
'src/scripts/**/*',
'e2e/**/*.ts',
],
},
},
resolve: {
alias: {
'@': path.resolve(__dirname, 'src'),
},
},
});