Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix(@angular-devkit/build-angular): use istanbul-lib-instrument directly for karma code coverage #27857

Merged
merged 1 commit into from
Jun 17, 2024

Conversation

clydin
Copy link
Member

@clydin clydin commented Jun 14, 2024

The istanbul-lib-instrument package provides the required functionality needed to instrument code for test coverage within the context of the Angular CLI. Since the build pipeline already contains a customized babel preset, this package can be integrated directly into the pipeline.
This reduces the number of dependencies required for @angular-devkit/build-angular including the deprecated inflight package.

@clydin clydin added the target: patch This PR is targeted for the next patch release label Jun 14, 2024
@clydin clydin force-pushed the karma/coverage-babel branch 2 times, most recently from 4e79544 to 623f782 Compare June 14, 2024 19:06
@clydin clydin force-pushed the karma/coverage-babel branch 2 times, most recently from 992961b to f2774f2 Compare June 14, 2024 19:28
…tly for karma code coverage

The `istanbul-lib-instrument` package provides the required functionality needed
to instrument code for test coverage within the context of the Angular CLI.
Since the build pipeline already contains a customized babel preset, this package
can be integrated directly into the pipeline.
This reduces the number of dependencies required for `@angular-devkit/build-angular`
including the deprecated `inflight` package.
@clydin clydin added the action: review The PR is still awaiting reviews from at least one requested reviewer label Jun 14, 2024
@clydin clydin requested a review from alan-agius4 June 14, 2024 19:41
@alan-agius4 alan-agius4 added action: cleanup The PR is in need of cleanup, either due to needing a rebase or in response to comments from reviews action: merge The PR is ready for merge by the caretaker and removed action: review The PR is still awaiting reviews from at least one requested reviewer action: cleanup The PR is in need of cleanup, either due to needing a rebase or in response to comments from reviews labels Jun 17, 2024
@alan-agius4 alan-agius4 added target: minor This PR is targeted for the next minor release and removed target: patch This PR is targeted for the next patch release labels Jun 17, 2024
@alan-agius4
Copy link
Collaborator

@clydin, this does not apply cleanly on the patch branch.

@alan-agius4 alan-agius4 merged commit fb2981d into angular:main Jun 17, 2024
33 of 34 checks passed
@clydin clydin deleted the karma/coverage-babel branch June 17, 2024 11:59
@angular-automatic-lock-bot
Copy link

This issue has been automatically locked due to inactivity.
Please file a new issue if you are encountering a similar or related problem.

Read more about our automatic conversation locking policy.

This action has been performed automatically by a bot.

@angular-automatic-lock-bot angular-automatic-lock-bot bot locked and limited conversation to collaborators Jul 18, 2024
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
action: merge The PR is ready for merge by the caretaker target: minor This PR is targeted for the next minor release
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Vulnerability in inflight dependency in the dependency chain of @angular-devkit/build-angular
3 participants