Commit 8816fef
test: add comprehensive tests for api.ts functions
- Add tests for needToken() function covering all TLS configuration scenarios
- Add tests for createHttpAgent() including TLS, proxy, and insecure mode
- Add tests for startWorkspaceIfStoppedOrFailed() with process spawn mocking
- Refactor api.ts to eliminate config access duplication with getConfigString/getConfigPath helpers
- Total test count increased from 59 to 82 tests
🤖 Generated with [Claude Code](https://claude.ai/code)
Co-Authored-By: Claude <noreply@anthropic.com>1 parent f785902 commit 8816fef
2 files changed
+642
-10
lines changed
0 commit comments