Commit e2e4292
fix: resolve test hanging issue and perfect npx execution, bump to 0.2.1
CRITICAL FIX: Tests were hanging because main() was being called during import.
Root cause analysis:
- import() was calling main() which waits for stdin
- Previous condition process.argv[1].includes('context-status.js') matched
test paths containing 'claude-code-context-status-line'
- Tests would hang waiting for stdin that never comes
Solution: Strict execution condition that only runs main() when file
is executed directly, verified to work with:
✅ Direct execution: node src/context-status.js
✅ NPM bin symlinks: claude-code-context-status-line
✅ Tests: Complete in ~74ms without hanging
✅ NPX ready: npx @this-dot/claude-code-context-status-line
This unblocks GitHub Actions CI/CD pipeline.
🤖 Generated with [Claude Code](https://claude.ai/code)
Co-Authored-By: Claude <[email protected]>1 parent 6f37ce8 commit e2e4292
File tree
3 files changed
+5
-4
lines changed- src
3 files changed
+5
-4
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1 | 1 | | |
2 | 2 | | |
3 | | - | |
| 3 | + | |
4 | 4 | | |
5 | 5 | | |
6 | 6 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
110 | 110 | | |
111 | 111 | | |
112 | 112 | | |
113 | | - | |
114 | | - | |
115 | | - | |
| 113 | + | |
| 114 | + | |
| 115 | + | |
| 116 | + | |
Binary file not shown.
0 commit comments