20 lines
620 B
JavaScript
20 lines
620 B
JavaScript
// tests/r3debug/vitest.config.js —— r3 修复轮 Debug-1 前端单测(#7/#27/#40/#52/#28/#7b)
|
||
// 本目录在 ui/ 之内,node_modules 由 ui 直接解析;仅指定 include 与 jsdom 环境。
|
||
// 运行方式:cd ui && npx vitest run --config tests/r3debug/vitest.config.js
|
||
import { defineConfig } from 'vitest/config';
|
||
import vue from '@vitejs/plugin-vue';
|
||
|
||
export default defineConfig({
|
||
plugins: [vue()],
|
||
resolve: {
|
||
alias: {
|
||
vue: 'vue/dist/vue.runtime.esm-bundler.js',
|
||
},
|
||
},
|
||
test: {
|
||
environment: 'jsdom',
|
||
include: ['tests/r3debug/**/*.test.js'],
|
||
globals: false,
|
||
},
|
||
});
|