Skip to content

[heft-jest-plugin] Add portable Istanbul coverage maps - #6209

Open
Yashwanth Reddy Verupaka (yashwanth195) wants to merge 1 commit into
microsoft:mainfrom
yashwanth195:user/yverupaka/jest-coverage-map-portability
Open

Yashwanth Reddy Verupaka (yashwanth195) wants to merge 1 commit into
microsoft:mainfrom
yashwanth195:user/yverupaka/jest-coverage-map-portability

Conversation

@yashwanth195

Copy link
Copy Markdown
Contributor

Summary

Add JSON-safe, build-root-relative Istanbul coverage maps as a foundation for future coverage aggregation across Jest shards. This standalone helper does not enable sharding or change Jest execution.

Details

Preserve coverage metadata and counters, including all, logical-branch counts and implicit else locations, without retaining source-map caches or mutating inputs. Resolve only positive-Infinity end-column sentinels using supplied original source text; reject invalid paths, counts and non-finite data instead of silently losing information during serialization.

Includes focused public-Istanbul API tests, dependency approvals, generated metadata for both affected Rush subspaces, and a minor changefile. No source IO, V8 conversion, collectors or reports are introduced.

How it was tested

Windows, Node 24.22.1:

  • node common\scripts\install-run-rush.js build --to-except @rushstack/heft-jest-plugin: passed.
  • node common\scripts\install-run-rush.js test --only @rushstack/heft-jest-plugin: passed (build, lint and tests).
  • node common\scripts\install-run-rush.js install --to @rushstack/heft-jest-plugin: passed (frozen default-subspace install).
  • node common\scripts\install-run-rush.js install --subspace build-tests-subspace: passed (frozen injected-dependency install).
  • node common\scripts\install-run-rush.js change --verify --target-branch c2acd010079c6c08e63ba25d0b136ed2c1b16ccd --no-fetch: passed.

Impacted documentation

Plugin README only; no website documentation or schema changes.

This branch has not been deployed

No deployments
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

Status: Needs triage

Development

Successfully merging this pull request may close these issues.

1 participant