Repository navigation
test(#86): Add CLI integration test for version output - #101
Merged
admarble merged 1 commit intoJan 17, 2026
Merged
Conversation
Add integration tests that run the actual built CLI to verify version output matches package.json. This catches path resolution bugs that unit tests with mocks miss. Tests added: - --version flag reports correct version - -V short flag reports correct version - status command shows Package version: X.X.X - Guard against 0.0.0 fallback appearing Closes #86 Co-Authored-By: Claude Opus 4.5 <[email protected]>
5 tasks
admarble
deleted the
feature/86-test-add-cli-integration-test-for-version-outpu
branch
January 17, 2026 00:59
This was referenced May 11, 2026
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
--version,-V, andstatuscommand all report correct package.json versionBackground
Issue #86 was created after a bug in
getCurrentVersion()returned0.0.0instead of the actual version. Unit tests passed because they mockedfs, but the real CLI had path resolution issues.Test plan
npm test- 366 tests pass (3 new + 1 skipped)npm run build- Build succeedsAC Coverage
--versionmatches package.jsonstatusshows correct package versionnpm testCloses #86
🤖 Generated with Claude Code