-
-
Notifications
You must be signed in to change notification settings - Fork 1.4k
Expand file tree
/
Copy pathvitest.config.ts
More file actions
29 lines (25 loc) · 733 Bytes
/
vitest.config.ts
File metadata and controls
29 lines (25 loc) · 733 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
import path from 'node:path'
import { fileURLToPath } from 'node:url'
import dotenv from 'dotenv'
import { defineConfig } from 'vitest/config'
const ROOT_DIR = fileURLToPath(new URL('.', import.meta.url))
dotenv.config({ path: path.join(ROOT_DIR, '.env') })
export default defineConfig({
resolve: {
alias: {
'@@': ROOT_DIR,
'@': path.join(ROOT_DIR, 'server', 'src'),
'@bridge': path.join(ROOT_DIR, 'bridges', 'nodejs', 'src'),
'@sdk': path.join(ROOT_DIR, 'bridges', 'nodejs', 'src', 'sdk')
}
},
test: {
environment: 'node',
fileParallelism: false,
disableConsoleIntercept: true,
restoreMocks: true,
clearMocks: true,
unstubEnvs: true,
testTimeout: 120_000
}
})