mirror of
https://github.com/VueTorrent/VueTorrent.git
synced 2024-11-25 10:55:50 +03:00
38 lines
941 B
TypeScript
38 lines
941 B
TypeScript
|
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']
|
||
|
}
|
||
|
}
|
||
|
})
|