-
Notifications
You must be signed in to change notification settings - Fork 14
Expand file tree
/
Copy pathvitest.config.mts
More file actions
30 lines (28 loc) · 890 Bytes
/
vitest.config.mts
File metadata and controls
30 lines (28 loc) · 890 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
import * as path from 'node:path';
import {fileURLToPath} from 'node:url';
import {defineConfig} from 'vitest/config';
const __dirname = path.dirname(fileURLToPath(import.meta.url));
export default defineConfig({
test: {
globals: true,
setupFiles: 'dotenv/config',
silent: false,
// Node.js 18 호환성을 위한 환경 설정
environment: 'node',
pool: 'forks',
},
resolve: {
alias: {
'@': path.resolve(__dirname, './src'),
'@test': path.resolve(__dirname, './test'),
'@models': path.resolve(__dirname, './src/models'),
'@models/requests/messages': path.resolve(
__dirname,
'./src/models/requests/messages',
),
'@lib': path.resolve(__dirname, './src/lib'),
'@internal-types': path.resolve(__dirname, './src/types'),
'@services': path.resolve(__dirname, './src/services'),
},
},
});