-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathvitest.config.ts
25 lines (24 loc) · 901 Bytes
/
vitest.config.ts
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
import path from 'path';
import { defineConfig } from 'vitest/config';
export default defineConfig({
resolve: {
alias: {
'@Car/Feature': path.resolve(__dirname, './src/lib/Car/feature'),
'@Car/Ui': path.resolve(__dirname, './src/lib/Car/ui'),
'@Car/Domain': path.resolve(__dirname, './src/lib/Car/domain'),
'@Car/Infrastructure': path.resolve(__dirname, './src/lib/Car/infrastructure'),
'@Shared/Infrastructure': path.resolve(__dirname, './src/lib/Shared/infrastructure'),
'@Shared/Ui': path.resolve(__dirname, './src/lib/Shared/ui'),
'@Test': path.resolve(__dirname, './src/test'),
},
},
test: {
environment: 'jsdom',
coverage: {
all: true,
include: ['src/**/*.tsx', 'src/**/*.ts'],
exclude: ['src/**/index.ts', 'src/**/app/main.tsx', 'src/**/*.d.ts'],
},
include: ['**/*.spec.ts', '**/*.spec.tsx'],
},
});