mirror of
https://github.com/imdap/ruoyi-plus-vben5.git
synced 2026-04-23 00:38:34 +08:00
29 lines
800 B
TypeScript
29 lines
800 B
TypeScript
import Vue from '@vitejs/plugin-vue';
|
|
import VueJsx from '@vitejs/plugin-vue-jsx';
|
|
import { configDefaults, defineConfig } from 'vitest/config';
|
|
|
|
export default defineConfig({
|
|
plugins: [Vue(), VueJsx()],
|
|
test: {
|
|
environment: 'happy-dom',
|
|
environmentOptions: {
|
|
happyDOM: {
|
|
settings: {
|
|
// happy-dom v20+ disables JS evaluation by default (security fix).
|
|
// Treat disabled script loading as success to preserve test behavior.
|
|
handleDisabledFileLoadingAsSuccess: true,
|
|
},
|
|
},
|
|
},
|
|
exclude: [
|
|
...configDefaults.exclude,
|
|
'**/e2e/**',
|
|
'**/dist/**',
|
|
'**/.{idea,git,cache,output,temp}/**',
|
|
'**/node_modules/**',
|
|
'**/{stylelint,eslint}.config.*',
|
|
'**/{oxfmt,oxlint}.config.*',
|
|
],
|
|
},
|
|
});
|