Browse Source

fix bug

main
谢亚昕 2 months ago
parent
commit
20e242884a
  1. 2
      scripts/test.mts

2
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");

Loading…
Cancel
Save