You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
28 lines
800 B
28 lines
800 B
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.*',
|
|
],
|
|
},
|
|
});
|
|
|