Repository navigation
[heft-jest-plugin] Validate and compact raw V8 coverage - #6208
Open
Yashwanth Reddy Verupaka (yashwanth195) wants to merge 3 commits into
Open
Yashwanth Reddy Verupaka (yashwanth195) wants to merge 3 commits into
Yashwanth Reddy Verupaka (yashwanth195) wants to merge 3 commits into
Conversation
This branch has not been deployed
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
Adds raw V8 coverage validation and compaction to support future coverage aggregation across Jest shards. Keep nested functions separate so an executed outer range does not incorrectly give coverage to an uncalled inner function.
Details
Validate every observation before merging or baseline replacement, reject incompatible source/maps and count overflow, and retain one observation per script without mutating inputs. Declare
@bcoe/v8-coverage@0.2.3directly and regenerate Rush approval and both subspaces' dependency metadata.This does not enable sharding, collect coverage or convert reports. Callers remain responsible for JSON shape, source identity and source-map integrity checks.
How it was tested
node common\scripts\install-run-rush.js install— passed for both subspaces.node common\scripts\install-run-rush.js test --only @rushstack/heft-jest-plugin --production --parallelism 4— passed build, lint and all 42 tests after prerequisite builds.node common\scripts\install-run-rush.js change --verify --target-branch upstream/main --no-fetch— passed.The 37 new cases cover real V8 nested-function capture parity, summed counts, bounded retention, both baseline orders, malformed observations, shebang/byte offsets, source/map conflicts, overflow and input isolation.
Impacted documentation
Package README only; no website documentation changes.