add:新增商机管理-客户管理页面
This commit is contained in:
17
vitest.config.ts
Normal file
17
vitest.config.ts
Normal file
@@ -0,0 +1,17 @@
|
||||
import { defineConfig } from 'vitest/config'
|
||||
import vue from '@vitejs/plugin-vue'
|
||||
import { resolve } from 'path'
|
||||
|
||||
export default defineConfig({
|
||||
plugins: [vue()],
|
||||
test: {
|
||||
// 关键:模拟浏览器环境,否则无法测试 DOM 和滚动
|
||||
environment: 'happy-dom',
|
||||
// 支持全局 API 如 describe, it, expect
|
||||
globals: true,
|
||||
// 路径别名(确保能找到你的 @/components)
|
||||
alias: {
|
||||
'@': resolve(__dirname, './src')
|
||||
}
|
||||
},
|
||||
})
|
||||
Reference in New Issue
Block a user