-
-
Notifications
You must be signed in to change notification settings - Fork 2
Expand file tree
/
Copy pathvitest.config.ts
More file actions
29 lines (27 loc) · 943 Bytes
/
vitest.config.ts
File metadata and controls
29 lines (27 loc) · 943 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 { fileURLToPath } from 'node:url'
import Vue from 'unplugin-vue/rolldown'
import { defineConfig } from 'vitest/config'
export default defineConfig({
resolve: {
alias: {
'@': fileURLToPath(new URL('src', import.meta.url)),
'@vuetify/v0': fileURLToPath(new URL('../../packages/0/src', import.meta.url)),
'@vuetify/paper': fileURLToPath(new URL('../../packages/paper/src', import.meta.url)),
// internal
'#v0': fileURLToPath(new URL('../../packages/0/src', import.meta.url)),
'#paper': fileURLToPath(new URL('../../packages/paper/src', import.meta.url)),
},
},
plugins: [Vue()],
define: {
__DEV__: 'process.env.NODE_ENV !== \'production\'',
__VITE_LOGGER_ENABLED__: 'process.env.VITE_LOGGER_ENABLED',
__VERSION__: '"0.0.1"',
},
test: {
environment: 'happy-dom',
globals: true,
include: ['**/*.{test,spec}.?(c|m)[jt]s?(x)'],
testTimeout: 20_000,
},
})