-
Notifications
You must be signed in to change notification settings - Fork 2
Expand file tree
/
Copy pathvitest.config.ts
More file actions
23 lines (22 loc) · 900 Bytes
/
vitest.config.ts
File metadata and controls
23 lines (22 loc) · 900 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
import { fileURLToPath } from 'url'
import { defineConfig } from 'vitest/config'
export default defineConfig({
test: {
environment: "jsdom",
globals: true,
snapshotFormat: {
printBasicPrototype: true
},
setupFiles: ["./setupTests.ts"],
},
resolve: {
alias: [
{ find: '@', replacement: fileURLToPath(new URL('./src', import.meta.url)) },
{ find: '@components', replacement: fileURLToPath(new URL('./src/components', import.meta.url)) },
{ find: '@managers', replacement: fileURLToPath(new URL('./src/managers', import.meta.url)) },
{ find: '@connections', replacement: fileURLToPath(new URL('./src/connections', import.meta.url)) },
{ find: '@utils', replacement: fileURLToPath(new URL('./src/utils', import.meta.url)) },
{ find: '@assets', replacement: fileURLToPath(new URL('./src/assets', import.meta.url)) },
]
},
})