-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathvitest.shared.ts
More file actions
36 lines (35 loc) · 896 Bytes
/
vitest.shared.ts
File metadata and controls
36 lines (35 loc) · 896 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
import { resolve } from 'path';
import type { UserConfig } from 'vitest/config';
export const sharedVitestConfig: UserConfig = {
test: {
globals: true,
environment: 'node',
coverage: {
provider: 'v8',
include: ['src/**/*.ts', 'src/**/*.tsx'],
exclude: [
'src/**/*.test.ts',
'src/**/*.test.tsx',
'src/**/*.steps.ts',
'src/acceptance/**',
'src/cli/index.ts',
'src/**/index.ts',
],
thresholds: {
statements: 80,
branches: 75,
functions: 80,
lines: 80,
},
},
},
resolve: {
alias: {
'@domain': resolve(__dirname, 'src/domain'),
'@infra': resolve(__dirname, 'src/infrastructure'),
'@features': resolve(__dirname, 'src/features'),
'@shared': resolve(__dirname, 'src/shared'),
'@cli': resolve(__dirname, 'src/cli'),
},
},
};