Skip to content

test: add CLI integration tests#66

Merged
sonukapoor merged 1 commit intomainfrom
codex/issue-65-cli-integration-tests
Apr 3, 2026
Merged

test: add CLI integration tests#66
sonukapoor merged 1 commit intomainfrom
codex/issue-65-cli-integration-tests

Conversation

@sonukapoor
Copy link
Copy Markdown
Collaborator

Summary

  • add a first batch of integration-style tests for src/index.ts
  • cover json output, fail-on exit behavior, invalid --osv-url handling, no-package behavior, and verbose printer routing
  • exercise the real main command flow while mocking surrounding module seams to keep the tests deterministic

Testing

  • npm test
  • npm run build

Closes #65

@sonukapoor sonukapoor merged commit 9971a2d into main Apr 3, 2026
4 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

[Enhancement] Add CLI integration tests for main command flow

1 participant