Files
lgp-admin-plus/vitest.config.ts
年糕崽崽 982bd9cd1b
Some checks failed
CI / Test (ubuntu-latest) (push) Has been cancelled
CI / Test (windows-latest) (push) Has been cancelled
CI / Lint (ubuntu-latest) (push) Has been cancelled
CI / Lint (windows-latest) (push) Has been cancelled
CI / Check (ubuntu-latest) (push) Has been cancelled
CI / Check (windows-latest) (push) Has been cancelled
CI / CI OK (push) Has been cancelled
CodeQL / Analyze (javascript-typescript) (push) Has been cancelled
Deploy Website on push / Deploy Push Playground Ftp (push) Has been cancelled
Deploy Website on push / Deploy Push Docs Ftp (push) Has been cancelled
Deploy Website on push / Deploy Push Antd Ftp (push) Has been cancelled
Deploy Website on push / Deploy Push Element Ftp (push) Has been cancelled
Deploy Website on push / Deploy Push Naive Ftp (push) Has been cancelled
Deploy Website on push / Rerun on failure (push) Has been cancelled
Release Drafter / update_release_draft (push) Has been cancelled
初始化
缺陷:主题配色需要优化整体的同风格
2026-08-14 23:23:58 +08:00

29 lines
801 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).1
// 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.*',
],
},
});