Fix: 为vitest添加include
Some checks failed
continuous-integration/drone Build is failing

This commit is contained in:
2025-07-15 14:11:16 +08:00
parent 856620fdd9
commit 6eb5b43906

View File

@ -6,7 +6,9 @@ export default mergeConfig(
viteConfig, viteConfig,
defineConfig({ defineConfig({
test: { test: {
globals: true,
environment: 'jsdom', environment: 'jsdom',
include: ['src/**/*.{test,spec}.{js,mjs,cjs,ts,mts,cts,jsx,tsx}'],
exclude: [...configDefaults.exclude, 'e2e/**'], exclude: [...configDefaults.exclude, 'e2e/**'],
root: fileURLToPath(new URL('./', import.meta.url)), root: fileURLToPath(new URL('./', import.meta.url)),
}, },