Skip to content

An open-source, privacy-first, self-hosted knowledge workspace where humans and AI agents work together 开源、隐私优先、自托管的知识工作空间,让人与智能体在此协作

:white_check_mark: Restrict test discovery to source directories https://github.com/siyuan-note/siyuan/issues/19473

Danield32b6592f6f1
diff --git a/app/package.json b/app/package.json
index cf7bba7a5e..b8e5cbf70c 100644
--- a/app/package.json
+++ b/app/package.json
@@ -11,7 +11,7 @@
"typecheck": "tsc -p tsconfig.typecheck.json && tsc -p tsconfig.api.json",
"api:generate": "node scripts/api-contracts.mjs",
"api:check": "node scripts/api-contracts.mjs --check",
- "test": "node --import tsx --test",
+ "test": "node --import tsx --test --test-concurrency=4 \"src/**/*.test.ts\" \"tests/**/*.test.js\" \"electron/**/*.test.js\" \"scripts/**/*.test.js\"",
"dev": "webpack --mode development",
"dev:mobile": "webpack --mode development --config webpack.mobile.js",
"dev:desktop": "webpack --mode development --config webpack.desktop.js",