forked from vbenjs/vue-vben-admin
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathvitest.config.ts
More file actions
28 lines (27 loc) · 800 Bytes
/
vitest.config.ts
File metadata and controls
28 lines (27 loc) · 800 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
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.*',
],
},
});