-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathvitest.config.ts
More file actions
25 lines (24 loc) · 935 Bytes
/
vitest.config.ts
File metadata and controls
25 lines (24 loc) · 935 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
import { fileURLToPath, URL } from 'node:url'
import { mergeConfig, defineConfig, configDefaults } from 'vitest/config'
import viteConfig from './vite.config'
export default mergeConfig(
viteConfig,
defineConfig({
test: {
environment: 'jsdom',
globals: true,
exclude: [...configDefaults.exclude, 'e2e/**'],
root: fileURLToPath(new URL('./', import.meta.url))
},
resolve: {
alias: {
'@': fileURLToPath(new URL('./src', import.meta.url)),
'@core': fileURLToPath(new URL('./src/core/core/main.ts', import.meta.url)),
'@services': fileURLToPath(new URL('./src/core/services/main.ts', import.meta.url)),
'@watchers': fileURLToPath(new URL('./src/core/watchers/main.ts', import.meta.url)),
pages: fileURLToPath(new URL('./src/client/pages', import.meta.url)),
app: fileURLToPath(new URL('./src/client/app', import.meta.url))
}
}
})
)