forked from VueTorrent/VueTorrent
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathvitest.config.ts
37 lines (36 loc) · 941 Bytes
/
vitest.config.ts
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
31
32
33
34
35
36
37
import { defineConfig } from 'vitest/config'
import vue from '@vitejs/plugin-vue2'
import Components from 'unplugin-vue-components/vite'
import { VuetifyResolver } from 'unplugin-vue-components/resolvers'
import { fileURLToPath, URL } from 'node:url'
export default defineConfig({
resolve: {
alias: {
'@': fileURLToPath(new URL('./src', import.meta.url)),
'~': fileURLToPath(new URL('./node_modules', import.meta.url))
}
},
plugins: [
vue(),
Components({
dts: false,
directives: false,
resolvers: [VuetifyResolver()],
types: [
{
from: 'vue-router',
names: ['RouterLink', 'RouterView']
}
]
})
],
test: {
// https://vitest.dev/guide/#configuring-vitest
globals: true,
globalSetup: [fileURLToPath(new URL('./vitest/setup.ts', import.meta.url))],
environment: 'jsdom',
deps: {
inline: ['vuetify']
}
}
})