Skip to content

refactor: migrate tests from jest to Node.js test utils#221

Merged
HipsterBrown merged 5 commits intomainfrom
xs-dev-new-tests
Sep 24, 2025
Merged

refactor: migrate tests from jest to Node.js test utils#221
HipsterBrown merged 5 commits intomainfrom
xs-dev-new-tests

Conversation

@HipsterBrown
Copy link
Owner

To help with upcoming refactors and feature development, I've finally started to add some basic test coverage to this project. It was originally scaffolded with Jest but I never embraced it. Given the existence of Node.js builtin test runner now, I've decided to replace the existing Jest coverage with the Node.js test utils to reduce the number of dependencies in the project and make it easier to integrate.

The "app builder" logic for bringing together all the command modules for the CLI has been split out into src/app.ts to make it easy to import into a test context without having to spawn a separate process to run the CLI and inspect the output.

All new PRs and releases will run these tests along with the existing linter, formatter, and compiler steps in CI.

@HipsterBrown HipsterBrown added the skip-release Preserve the current version when merged label Sep 24, 2025
@HipsterBrown HipsterBrown merged commit 4891c60 into main Sep 24, 2025
4 checks passed
@HipsterBrown HipsterBrown deleted the xs-dev-new-tests branch September 24, 2025 21:05
@HipsterBrown
Copy link
Owner Author

🚀 PR was released in v1.1.0 🚀

@HipsterBrown HipsterBrown added the released This issue/pull request has been released. label Feb 11, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

released This issue/pull request has been released. skip-release Preserve the current version when merged

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant