fix: 修复测试无法自然退出 — forceExit + 减少延迟 + 拆分 coverage
CI / test (22.x) (push) Canceled after 0s
CI / test (24.x) (push) Canceled after 0s
CI / test (18.x) (push) Canceled after 1h32m41s
CI / test (20.x) (push) Canceled after 0s

- jest.config.cjs: forceExit:true + testTimeout:15000

- package.json: npm test 默认不再 --coverage

- tests/utils.test.ts: debounce 延迟 50->20, 100->50
This commit is contained in:
2026-07-27 18:12:06 +08:00
parent 648526c188
commit bc69d8f500
3 changed files with 9 additions and 5 deletions
+2 -1
View File
@@ -24,7 +24,8 @@
"scripts": {
"build": "rollup -c",
"dev": "rollup -c -w",
"test": "jest --coverage",
"test": "jest",
"test:coverage": "jest --coverage",
"test:watch": "jest --watch",
"lint": "eslint \"src/**/*.ts\"",
"lint:fix": "eslint \"src/**/*.ts\" --fix",