Skip to content

Conversation

@abhishek-maurya576
Copy link

Fixes #1

Summary

Added comprehensive test coverage for the good-first-issue CLI tool.

Changes

  • ✅ Added CLI tests (tests/cli.spec.js) - verifies -o flag exits appropriately
  • ✅ Enhanced log tests (tests/log.spec.js) - ensures no undefined values, especially for repo names
  • ✅ Added module tests (tests/index.spec.js) - verifies require('good-first-issue') returns correct object shape
  • ✅ Added prompt tests (tests/prompt.spec.js)
  • ✅ Created index.js main module file (referenced in package.json but was missing)

Test Results

  • 50 tests passing
  • 100% statement coverage
  • All tests follow Jest and StandardJS conventions

Requirements Met

All three requirements from issue #1 are addressed:

  1. good-first-issue <project> -o exits appropriately ✅
  2. log returns properly formatted output without undefined (repo name tested) ✅
  3. require('good-first-issue') returns object with correct shape ✅

- Add CLI tests for flags and exit codes
- Enhance log tests to prevent undefined values (especially repo name)
- Add tests for require('good-first-issue') module usage
- Create index.js main module file
- Add prompt functionality tests

Fixes cutenode#1
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.

Add tests

1 participant