Skip to content

test: add helper unit tests#58

Merged
sonukapoor merged 1 commit intomainfrom
codex/issue-57-helper-tests
Apr 3, 2026
Merged

test: add helper unit tests#58
sonukapoor merged 1 commit intomainfrom
codex/issue-57-helper-tests

Conversation

@sonukapoor
Copy link
Copy Markdown
Collaborator

Summary

  • add unit tests for CLI argument parsing in src/cli/args.ts
  • add unit tests for severity, version, and file helper behavior in src/osv/severity.ts, src/utils/version.ts, and src/utils/file.ts
  • cover default parsing, flag/value handling, severity normalization, version parsing, and file discovery helpers with deterministic tests

Testing

  • npm test
  • npm run build

Closes #57

@sonukapoor sonukapoor merged commit 4fa5cd8 into main Apr 3, 2026
3 checks passed
@sonukapoor sonukapoor deleted the codex/issue-57-helper-tests branch April 3, 2026 19:23
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 unit tests for CLI and utility helpers

1 participant