Files

20 lines
620 B
JavaScript
Raw Permalink Blame History

This file contains ambiguous Unicode characters
This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.
// 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,
},
});