-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathvitest.config.ts
51 lines (50 loc) · 1.72 KB
/
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
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
import path from 'path';
import { defineConfig } from 'vitest/config';
export default defineConfig({
test: {
exclude: [
'**/node_modules/**',
'**/dist/**',
'**/cypress/**',
'**/.{idea,git,cache,output,temp}/**',
'**/{karma,rollup,webpack,vite,vitest,jest,ava,babel,nyc,cypress,tsup,build}.config.*',
'**/src/app/tests/**/index.ts',
'**/html/**',
'**/coverage/**',
'**/src/factories/**',
'**/docs/**',
'**/.serverless/**',
'**/esbuild/**',
'**/.scaffolding/**',
'**/prisma/**',
'**/src/tests/**',
],
reporters: ['basic'],
coverage: {
provider: 'v8',
},
globals: true,
alias: {
'@/modules': path.resolve(__dirname, './src/app/modules'),
'@/interfaces': path.resolve(__dirname, './src/app/interfaces'),
'@/adapters': path.resolve(__dirname, './src/server/adapters'),
'@/factories': path.resolve(__dirname, './src/factories'),
'@/utils': path.resolve(__dirname, './src/app/utils/index.ts'),
'@/errors': path.resolve(__dirname, './src/app/errors/index.ts'),
'@/providers': path.resolve(__dirname, './src/app/providers'),
'@/config': path.resolve(__dirname, './src/app/config/index.ts'),
'@/tests': path.resolve(__dirname, './src/app/tests/index.ts'),
'@/entities': path.resolve(__dirname, './src/app/entities'),
'@/middlewares': path.resolve(__dirname, './src/app/middlewares'),
'@/repositories': path.resolve(
__dirname,
'src',
'app',
'database',
'repositories'
),
'@/database': path.resolve(__dirname, 'src', 'app', 'database'),
'@/constants': path.resolve(__dirname, 'src', 'app', 'constants'),
},
},
});