ci(web): enforce coverage floor in CI - #102
Merged
Merged
Conversation
Add vitest coverage thresholds (statements 60 / branches 50 / functions 65 / lines 60) as a ratchet just below the current baseline (65.62 / 59 / 70.7 / 66.19), and switch the CI test step to `npm run test:coverage` so the floor is enforced on every push and PR. Fails on regression without turning main red today.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
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.
Summary
No linked issue — CI/tooling hardening (Phase 2 quality gates).
Adds vitest coverage thresholds and switches the CI test step to
npm run test:coverageso coverage is enforced on every push and PR. The floor is set as a ratchet just below the current baseline, so it fails on regression without turningmainred today.Baseline measured locally: statements 65.62% · branches 59% · functions 70.7% · lines 66.19%.
Thresholds set: statements 60 · branches 50 · functions 65 · lines 60.
This repo is for the React web app only
src/changes)Type of change
Testing
npm run test:coverageexits 0 with thresholds enforcednpm run buildpassesnpm run lintpassesMandatory before requesting review
npm run lint,npm test, andnpm run buildall exit 0 locally. No tests removed.