Просмотр исходного кода

chore: remove leftover ConstructionHome test .bak file

xuyunhui 1 неделя назад
Родитель
Сommit
0219005eda

+ 4 - 7
openspec/changes/weapp-capsule-safearea/.comet/subagent-progress.md

@@ -7,11 +7,7 @@
 
 ## Current Task
 
-- Task: Task 8: 类型检查与构建验证
-- Plan Task Text: "Task 8: 类型检查与构建验证"
-- OpenSpec Task Text: "3.1 Run `npm run type-check` and fix any TypeScript errors." / "3.2 Run `npm run build:mp-weixin` and confirm the build succeeds."
-- Stage: implementing
-- Review-Fix Round: 0
+无 — 所有 plan task 已完成。
 
 ## Completed Tasks
 
@@ -22,6 +18,7 @@
 - Task 5: 改造施工端首页 ConstructionHome.vue(commit 4a57952)
 - Task 6: 改造任务列表页 TaskListView.vue(commit ffa0218)
 - Task 7: 改造排班页 ScheduleView.vue(commit 57fee7b)
+- Task 8: 类型检查与构建验证(commit 1884396 / b5dd9df)
 
 ## Pending Tasks
 
@@ -29,5 +26,5 @@
 
 ## Notes
 
-- 任务之间禁止暂停,连续执行
-- Task 8 是最终验证任务
+- review_mode: standard,所有 task 完成后需派发一次最终轻量 code reviewer
+- 最终 review 通过后返回 comet-build 继续退出条件和阶段守卫

+ 0 - 50
src/components/home/ConstructionHome.test.ts.bak

@@ -1,50 +0,0 @@
-// ConstructionHome template structure test
-// TDD: Verify TopBar usage with left/right slots
-
-import { describe, it, expect } from 'vitest'
-import { mount } from '@vue/test-utils'
-import ConstructionHome from './ConstructionHome.vue'
-
-// Since we don't have a full test runner setup, we'll create a simple
-// structural verification test that can be run manually
-
-function verifyTemplateStructure(): boolean {
-  const fs = require('fs')
-  const path = require('path')
-
-  const filePath = path.join(__dirname, 'ConstructionHome.vue')
-  const content = fs.readFileSync(filePath, 'utf-8')
-
-  const checks = {
-    hasTopBarImport: content.includes("import TopBar from '@/components/common/TopBar.vue'"),
-    usesTopBarComponent: content.includes('<TopBar'),
-    hasTitleProp: content.includes('title=""'),
-    hasLeftSlot: content.includes('<template #left>'),
-    hasRightSlot: content.includes('<template #right>'),
-    noStatusBarImport: !content.includes("import StatusBar from '@/components/common/StatusBar.vue'"),
-    noStatusBarUsage: !content.includes('<StatusBar />'),
-    hasNotificationButton: content.includes('goToNotification'),
-    hasUserInfo: content.includes('张师傅'),
-    hasPersonIcon: content.includes('uniui-person-filled'),
-    hasNotificationIcon: content.includes('uniui-notification-filled')
-  }
-
-  console.log('\n=== ConstructionHome Template Structure Verification ===\n')
-
-  let allPass = true
-  for (const [check, passed] of Object.entries(checks)) {
-    const status = passed ? 'PASS' : 'FAIL'
-    console.log(`  ${check}: ${status}`)
-    if (!passed) allPass = false
-  }
-
-  console.log(`\n${allPass ? '✓ All checks PASSED' : '✗ Some checks FAILED'}`)
-  return allPass
-}
-
-// Run the test
-if (require.main === module) {
-  verifyTemplateStructure()
-}
-
-export { verifyTemplateStructure }