Skip to content

test(web): add colocated frontend coverage#149

Merged
vsxd merged 1 commit intomainfrom
feature/web-test
Mar 23, 2026
Merged

test(web): add colocated frontend coverage#149
vsxd merged 1 commit intomainfrom
feature/web-test

Conversation

@dongmucat
Copy link
Collaborator

Summary

  • migrate the existing app style tests from web/test into colocated web/src coverage
  • add broad Vitest coverage across pages, features, shared UI, hooks, and key governance/file-preview/namespace/api-client paths
  • fix web/src/api/client.test.ts runtime window setup so the web typecheck passes cleanly

Test Plan

  • cd web && pnpm run test
  • cd web && pnpm run typecheck

变更摘要:
- 将前端测试共置到 web/src,保留并迁移 app 样式相关用例
- 为 pages、features、shared UI 与 hooks 补齐大范围 Vitest 覆盖
- 强化 governance、file preview、namespace header 与 API client 的关键分支测试
- 重新验证 pnpm run test 与 pnpm run typecheck,当前均已通过

关键文件:
- web/src/pages/dashboard/governance.test.ts
- web/src/features/governance/governance-inbox.test.ts
- web/src/features/skill/file-preview-dialog.test.ts
- web/src/features/namespace/namespace-header.test.ts
- web/src/api/client.test.ts
@vsxd vsxd merged commit 7c84966 into main Mar 23, 2026
2 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants