chore: version packages #9
Merged
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.
This PR was opened by the Changesets release GitHub action. When you're ready to do a release, you can merge this and the packages will be published to npm automatically. If you're not ready to do a release yet, that's fine, whenever you add more changesets to main, this PR will be updated.
Releases
github-archiver@1.3.0
Minor Changes
3644afbThanks @mynameistito! - ## Comprehensive Test Coverage ExpansionThis changeset introduces a major test coverage expansion, achieving 100% coverage on all core business logic and adding 200+ new test cases.
Key Changes
Test Coverage Improvements
Core Business Logic (100% Complete)
Code Refactoring for Testability
archive.ts: Exported 9 helper functions
validateOptions()- validates CLI options with bounds checkingauthenticateUser()- handles GitHub authenticationgetRepositories()- reads repositories from file/stdin/interactivelogParseErrors()- displays parsing errors with line numbersshowRepositoriesPreview()- displays repository previewconfirmOperation()- handles user confirmationarchiveRepositories()- executes archiving workflowdisplayResults()- shows archiving resultshandleArchiveError()/provideErrorGuidance()- error handlingauth.ts: Exported 6 helper functions
createLoginCommand()- login subcommandcreateLogoutCommand()- logout subcommandcreateStatusCommand()- status subcommandcreateValidateCommand()- validate subcommandpromptForToken()- token input promptconfirmAction()- confirmation promptTest Files Added/Enhanced
tests/unit/archive-command.test.ts- 48 test cases for archive command logictests/unit/auth-command.test.ts- 41 test cases for auth command logictests/unit/github.test.tswith 50+ test casestests/unit/input-handler.test.tswith 30+ test casestests/unit/logger.test.tswith console formatting teststests/unit/parser.test.tswith edge case coverageCode Quality
Documentation
COVERAGE_SUMMARY.mdwith detailed coverage breakdownTEST_COVERAGE_ANALYSIS.mdwith comprehensive analysisCoverage Metrics
Breaking Changes
None. All exported functions are implementation details that maintain backward compatibility.
Migration Guide
No migration needed. The exported functions were previously internal and are now available for testing. CLI and public API remain unchanged.
Future Work
For 100% coverage on remaining files:
These require specialized testing frameworks beyond unit testing and are typically handled with dedicated integration/E2E test suites.