From 20e242884aba594b1b63cd525f7685f7c03f3cc8 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E8=B0=A2=E4=BA=9A=E6=98=95?= <1549469775@qq.com> Date: Sat, 22 Feb 2025 20:03:51 +0800 Subject: [PATCH] fix bug --- scripts/test.mts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/scripts/test.mts b/scripts/test.mts index 6ea3fc4..e7a3fbc 100644 --- a/scripts/test.mts +++ b/scripts/test.mts @@ -5,7 +5,7 @@ const [dir, inDir] = process.argv.slice(2); if (dir) { startVitest("test", [], { root: `./packages/${dir}`, - include: [`${inDir}/**/__tests__/**/*.{js,mjs,cjs,ts,mts,cts,jsx,tsx}`] + include: [`src${inDir?'/'+inDir:''}/**/__tests__/**/*.{js,mjs,cjs,ts,mts,cts,jsx,tsx}`] }); } else { startVitest("test");