Skip to content

Declare istanbul-lib-instrument so coverage is reproducible - #130

Merged
bgard68 merged 1 commit into
frontendfrom
claude/web-coverage-dep
Aug 25, 2026
Merged

Declare istanbul-lib-instrument so coverage is reproducible#130
bgard68 merged 1 commit into
frontendfrom
claude/web-coverage-dep

Conversation

@bgard68

@bgard68 bgard68 commented Aug 25, 2026

Copy link
Copy Markdown
Owner

ng test --code-coverage currently fails outright from a clean clone:

The 'istanbul-lib-instrument' package is required for code coverage but was not found.

@angular/build's karma builder resolves the instrumenter from the top level, and the lock file carried it only nested under karma-coverage. Declaring it directly hoists it.

This is the last piece of the coverage work — without it the 100% figure isn't reproducible by anyone else.

Verified from a clean npm ci: 105 specs pass, coverage reports 100% statements, 100% functions, 100% lines, 98.57% branches. npm audit clean.

🤖 Generated with Claude Code

@angular/build's karma builder resolves the instrumenter from the top level,
and the lock file carried it only nested under karma-coverage - so
'ng test --code-coverage' failed before instrumenting anything:

  The 'istanbul-lib-instrument' package is required for code coverage but was
  not found.

Declaring it directly hoists it. Verified from a clean npm ci: 105 specs pass
and coverage reports 100% statements, functions and lines, 98.57% branches.

Co-Authored-By: Claude <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01AWkVh7cyAz1gWapBH1CY8n
@bgard68
bgard68 merged commit 7f8ee9c into frontend Aug 25, 2026
8 checks passed
@bgard68
bgard68 deleted the claude/web-coverage-dep branch August 25, 2026 03:42
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants