Files
workspace/code/g3soft-erp/web/vitest.config.ts
T
2026-10-09 22:05:02 +08:00

19 lines
431 B
TypeScript

import { fileURLToPath, URL } from 'node:url'
import vue from '@vitejs/plugin-vue'
import { defineConfig } from 'vitest/config'
export default defineConfig({
plugins: [vue()],
resolve: {
alias: {
'@': fileURLToPath(new URL('./src', import.meta.url)),
},
dedupe: ['vue', 'vue-router', 'pinia'],
},
test: {
environment: 'happy-dom',
include: ['src/**/*.{test,spec}.ts'],
globals: true,
},
})