Skip to content

test(@angular/build): verify coverage ignore comments are preserved during compilation#32899

Draft
clydin wants to merge 1 commit intoangular:mainfrom
clydin:vitest/coverage-tests
Draft

test(@angular/build): verify coverage ignore comments are preserved during compilation#32899
clydin wants to merge 1 commit intoangular:mainfrom
clydin:vitest/coverage-tests

Conversation

@clydin
Copy link
Copy Markdown
Member

@clydin clydin commented Mar 30, 2026

The underlying Vitest coverage engine depends on specific developer comments like /* istanbul ignore next */ or /* v8 ignore next */ being present in the executing code to accurately isolate unmeasured blocks.

This commit adds strict behavioral tests to assert that the Angular CLI's in-memory compilation pipeline (via esbuild) properly preserves these structural comments and forwards them reliably to Vitest's coverage processing engine.

…uring compilation

The underlying Vitest coverage engine depends on specific developer comments like `/* istanbul ignore next */` or `/* v8 ignore next */` being present in the executing code to accurately isolate unmeasured blocks.

This commit adds strict behavioral tests to assert that the Angular CLI's in-memory compilation pipeline (via esbuild) properly preserves these structural comments and forwards them reliably to Vitest's coverage processing engine.
@clydin clydin force-pushed the vitest/coverage-tests branch from 299ad3c to b71b59f Compare March 30, 2026 23:07
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant