-
Notifications
You must be signed in to change notification settings - Fork 5
🚀 Setup Jest for Unit Testing #66
Copy link
Copy link
Open
Labels
ci/cdenhancementNew feature or requestNew feature or requestgood first issueGood for newcomersGood for newcomershelp wantedExtra attention is neededExtra attention is neededtesting
Description
🚀 Setup Jest for Unit Testing
Description
We need to add Jest to the project to ensure core functionality works correctly. This will help maintain stability and make it easier to safely update dependencies. The initial focus is on unit tests for the main parser functions and CLI output.
Tasks
- Install Jest as a dev dependency (
npm install --save-dev jest) - Add a test script to
package.json("test": "jest") - Create a
tests/folder - Add a sample test file for the parser function (
tests/errParser.test.js) - Add optional CLI integration test using
execSync - Verify tests run successfully with
npm test
Expected Outcome
- Core parsing functions are tested
- CLI output can be validated through unit/integration tests
- Automated test framework in place for future contributions
Additional Notes
- This is a unit test setup only; later we can expand coverage with more tests or snapshots
- Ensure tests are compatible with CI/CD workflows for Dependabot PRs
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
ci/cdenhancementNew feature or requestNew feature or requestgood first issueGood for newcomersGood for newcomershelp wantedExtra attention is neededExtra attention is neededtesting