Skip to content

Add Jest coverage threshold and update test scripts.#68

Open
emdhruu wants to merge 1 commit intoExpediaGroup:mainfrom
emdhruu:feature/#45-add-coverage-threshold
Open

Add Jest coverage threshold and update test scripts.#68
emdhruu wants to merge 1 commit intoExpediaGroup:mainfrom
emdhruu:feature/#45-add-coverage-threshold

Conversation

@emdhruu
Copy link

@emdhruu emdhruu commented Dec 26, 2024

📝 Description

This PR introduces coverage thresholds for Jest tests to enforce minimum code coverage.

Fixes #45

🖼️ Screenshot

Screenshot (25)

List the major changes in this PR.

  • Added coverageThreshold configuration in jest.config.js.
  • Enabled coverage collection with collectCoverage.
  • Updated test script in package.json to run Jest with coverage.
  • Verified that the coverage report is generated by running npm run test.
  • Mentioned the changes that are made in CONTRIBUTING.md.

@emdhruu emdhruu requested a review from a team as a code owner December 26, 2024 16:05
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 coverage threshold for automated tests

1 participant