-
-
Notifications
You must be signed in to change notification settings - Fork 24
Expand file tree
/
Copy pathvitest.config.ts
More file actions
26 lines (25 loc) · 751 Bytes
/
vitest.config.ts
File metadata and controls
26 lines (25 loc) · 751 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
import { resolve } from 'node:path';
import { defineConfig } from 'vitest/config';
export default defineConfig({
test: {
globals: false,
environment: 'node',
typecheck: {
enabled: true,
},
coverage: {
provider: 'v8',
reporter: ['json-summary', 'text', 'lcov'],
include: ['src'],
exclude: ['__tests__', '__mocks__', 'src/types'],
},
setupFiles: ['__tests__/_setup'],
include: ['__tests__/**/*.test.ts'],
forceRerunTriggers: ['**/vitest.config.*/**', '**/__mocks__/**/*', '__tests__/_setup.ts'],
alias: {
'@/tests/': `${resolve(__dirname, '__tests__')}/`,
'@/mocks/': `${resolve(__dirname, '__mocks__')}/`,
'@/': `${resolve(__dirname, 'src')}/`,
},
},
});