Skip to content

Commit 2a166aa

Browse files
jaggederestclaude
andcommitted
test: add comprehensive test suite for api-helper.ts
- Add 32 tests covering all functions in api-helper.ts - Test errToStr() with Error instances, API errors, ErrorEvent, strings, and edge cases - Test extractAgents() and extractAllAgents() with various workspace configurations - Validate Zod schemas for AgentMetadataEvent - Update CLAUDE.md to reflect standard test running approach - All 137 tests now passing 🤖 Generated with [Claude Code](https://claude.ai/code) Co-Authored-By: Claude <noreply@anthropic.com>
1 parent b79b844 commit 2a166aa

File tree

2 files changed

+560
-2
lines changed

2 files changed

+560
-2
lines changed

CLAUDE.md

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -7,8 +7,7 @@
77
- Package: `yarn package`
88
- Lint: `yarn lint`
99
- Lint with auto-fix: `yarn lint:fix`
10-
- Run all tests: `yarn test:ci` (always use CI mode for reliable results)
11-
- Run specific test: `yarn test:ci ./src/filename.test.ts`
10+
- Run all tests: `yarn test:ci` (always use CI mode for reliable results, runs all test files automatically)
1211
- Watch mode (development only): `yarn test`
1312
- Run tests with coverage: `yarn test:coverage`
1413
- View coverage in browser: `yarn test:coverage:ui`

0 commit comments

Comments
 (0)
pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy