test(web): add v8 coverage with truthful baseline floor#26
Merged
Conversation
Adds @vitest/coverage-v8 (catalog-pinned), a test:coverage script wired through turbo (inputs + coverage/** output), and coverage thresholds set to a floor measured on main (lines 18 / funcs 10 / branches 10 / stmts 17 against current 19.3/11.4/11.7/18.9). Ratchet upward as tests grow. Adapts the coverage config from @BenSheridanEdwards's fork; the multi-job CI fan-out from that branch was intentionally left out. Co-authored-by: Ben Sheridan-Edwards <BenSheridanEdwards@users.noreply.github.com>
949d9a4 to
94c4235
Compare
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.
Adds code-coverage measurement with an honest, ratchetable floor:
@vitest/coverage-v8(catalog-pinned at the vitest^4line).test:coveragescript, wired throughturbowithinputs+coverage/**output so it shares the cache.coverage/gitignored.The multi-job CI fan-out from the source branch was deliberately not included (it re-runs setup per job, which is cache-hostile).
Credit
Coverage config adapted from @BenSheridanEdwards's fork (
chore/ci-hardening). Thanks Ben!Verification
make checkgreen;turbo run test:coveragepasses the threshold gate.