11 lines
399 B
TypeScript
11 lines
399 B
TypeScript
import { fileURLToPath, URL } from 'node:url'
|
|
import { defineConfig } from 'vitest/config'
|
|
import vue from '@vitejs/plugin-vue'
|
|
|
|
/** 使用轻量 DOM 测试 API、异步状态和 Vue 页面行为。 */
|
|
export default defineConfig({
|
|
plugins: [vue()],
|
|
resolve: { alias: { '@': fileURLToPath(new URL('./src', import.meta.url)) } },
|
|
test: { environment: 'happy-dom', restoreMocks: true }
|
|
})
|