Files
crawler-plugin/frontend-vue/package.json
T
huangzd1997 c81ebb7053 fix(前端测试): 修复 npm test 卡死——定时器泄漏 + 去套娃 + 强制退出/超时
- 根因:polling-backoff-recovery 测试断言失败后跳过 loop.dispose(),残留自续期定时器导致 node --test 子进程永不退出
- dead-code-cleanup:移除套娃用例 test_full_vitest_green(再跑一遍全量套件,放大问题),execSync 加 300s 超时;其余静态断言保留
- package.json:node --test --test-force-exit --test-timeout=180000
- CI workflow 前端测试步骤改为 npm test(与 package.json 单一来源)
- 修正 3 处过时期望值(轮询退避/品牌 files+taskType/巡店 delete_conditions)
- 验证:本地 666 用例全过,19-24s,无残留进程
2026-09-13 10:51:19 +08:00

27 lines
700 B
JSON

{
"name": "crawler-plugin-frontend-vue",
"private": true,
"version": "0.0.1",
"type": "module",
"scripts": {
"dev": "vite --host --port 5173",
"build": "vue-tsc --noEmit && vite build",
"preview": "vite preview",
"test": "node --test --test-force-exit --test-timeout=180000 tests/*.test.ts"
},
"dependencies": {
"axios": "^1.13.6",
"element-plus": "^2.11.4",
"vue": "^3.5.18",
"vue-router": "^4.5.1"
},
"devDependencies": {
"@types/node": "^24.3.0",
"@vitejs/plugin-vue": "^6.0.1",
"typescript": "^5.9.2",
"unplugin-auto-import": "^20.1.0",
"unplugin-vue-components": "^29.0.0",
"vite": "^7.1.3",
"vue-tsc": "^3.0.6"
}
}