84ae94b6c6
- vitest.config.ts 与 vite.config.ts 分家:只服务 tests/mount/**,不进 tsconfig include,npm run build 产物不受影响(vue-tsc --noEmit rc=0 实测) - tests/mount/notification-bell-failure.mount.test.ts 三支:标已读失败必须给带原因的错误提示且不许把行冒充成已读;成功时不产生提示且行真转已读;列表失败文案进面板本身而不弹全局消息 - NotificationBell.vue 的 onItemClick 改前只 console.warn(点了通知没反应、行也不转已读),现与 readAll 同走 ElMessage.error;反证:摘掉这行出口 ⇒ 挂载例判红(实测 1 failed 2 passed) - 依赖只加 devDependencies(vitest/@vue/test-utils/happy-dom),运行时四项 lock 版本与 HEAD 逐一对等 ⇒ 生产构建输入未变 - 面板是 Teleport 到 body:wrapper.find 看不见里面的行,改从 document 取节点用原生 click 触发(实测踩过) - npm test 那支不递归的 glob 仍 762 例 0 红,两套 runner 互不抓取
31 lines
787 B
JSON
31 lines
787 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",
|
|
"@vue/test-utils": "^2.5.1",
|
|
"happy-dom": "^20.14.6",
|
|
"typescript": "^5.9.2",
|
|
"unplugin-auto-import": "^20.1.0",
|
|
"unplugin-vue-components": "^29.0.0",
|
|
"vite": "^7.1.3",
|
|
"vitest": "^5.0.3",
|
|
"vue-tsc": "^3.0.6"
|
|
}
|
|
}
|