claude-code-best/tests/mocks
claude-code-best 5486d3c02c fix: 修复 Bun mock.module 跨文件污染导致 87 个测试失败
- 重写 setupAxiosMock 使其完全 per-file 独立,消除共享 handles 数组的竞态
- 将 launchSchedule/launchMemoryStores/launchAgentsPlatform 从直接 mock
  源 API 模块改为 mock axios 底层 HTTP 层,避免污染同目录 api.test.ts
- 删除两个 Ink waitUntilExit 超时测试文件
- 修复 hostGuard/keychain 跨文件 mock 污染
- 清理 api.test.ts 中的 require() workaround
- 在 CLAUDE.md 记录 mock 污染排查经验

Co-Authored-By: glm-5-turbo <zai-org@claude-code-best.win>
2026-05-11 08:50:03 +08:00
..
fixtures style: 完成所有文件的lint 2026-05-01 21:39:30 +08:00
api-responses.ts style: 完成所有文件的lint 2026-05-01 21:39:30 +08:00
auth.ts fixup: address CodeRabbit second-round review on PR #386 2026-04-29 15:49:54 +08:00
axios.ts fix: 修复 Bun mock.module 跨文件污染导致 87 个测试失败 2026-05-11 08:50:03 +08:00
childProcess.ts chore: 添加 CI 配置、codecov 和测试 mock 基础设施 2026-05-09 23:04:04 +08:00
debug.ts style: 完成所有文件的lint 2026-05-01 21:39:30 +08:00
file-system.ts refactor: 简化/复用/防御 — 清理 PR #386 审计发现 2026-04-29 13:23:41 +00:00
log.ts style: 完成所有文件的lint 2026-05-01 21:39:30 +08:00
state.ts chore: 添加 CI 配置、codecov 和测试 mock 基础设施 2026-05-09 23:04:04 +08:00
toolContext.ts chore: 添加 CI 配置、codecov 和测试 mock 基础设施 2026-05-09 23:04:04 +08:00