From 6eb5b43906cc3c5ce95e7c67df40b8490d319cb8 Mon Sep 17 00:00:00 2001 From: huanshuo-W <15258427350@163.com> Date: Tue, 15 Jul 2025 14:11:16 +0800 Subject: [PATCH] =?UTF-8?q?Fix:=20=E4=B8=BAvitest=E6=B7=BB=E5=8A=A0include?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- vitest.config.ts | 2 ++ 1 file changed, 2 insertions(+) diff --git a/vitest.config.ts b/vitest.config.ts index c328717..0131a6d 100644 --- a/vitest.config.ts +++ b/vitest.config.ts @@ -6,7 +6,9 @@ export default mergeConfig( viteConfig, defineConfig({ test: { + globals: true, environment: 'jsdom', + include: ['src/**/*.{test,spec}.{js,mjs,cjs,ts,mts,cts,jsx,tsx}'], exclude: [...configDefaults.exclude, 'e2e/**'], root: fileURLToPath(new URL('./', import.meta.url)), },