-
Notifications
You must be signed in to change notification settings - Fork 0
/
vitest.config.integration.ts
33 lines (32 loc) · 1.33 KB
/
vitest.config.integration.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
// vitest.config.integration.ts
import path from 'path';
import { defineConfig } from 'vitest/config';
export default defineConfig({
test: {
include: ['src/**/*.test.ts', '!src/tests', 'src/tests/*.test.ts'],
setupFiles: ['src/tests/helpers/setup.ts'],
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'),
},
},
});