Skip to content

refactor(core): expose getCleanupHook via private exports #61017

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

Closed
wants to merge 2 commits into from

Conversation

alan-agius4
Copy link
Contributor

Expose getCleanupHook as a private export to address integration issues with Vitest. In Vitest, globalThis.beforeEach and globalThis.afterEach are not available by default. Additionally, these hooks are patched during module evaluation, complicating seamless integration with Vitest.

See: angular/angular-cli#30188

Expose `getCleanupHook` as a private export to address integration issues with Vitest. In Vitest, `globalThis.beforeEach` and `globalThis.afterEach` are not available by default. Additionally, these hooks are patched during module evaluation, complicating seamless integration with Vitest.

See: angular/angular-cli#30188
@alan-agius4 alan-agius4 added action: review The PR is still awaiting reviews from at least one requested reviewer target: major This PR is targeted for the next major release labels Apr 28, 2025
@angular-robot angular-robot bot added the area: core Issues related to the framework runtime label Apr 28, 2025
@ngbot ngbot bot added this to the Backlog milestone Apr 28, 2025
Copy link
Contributor

@thePunderWoman thePunderWoman left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

@alan-agius4 alan-agius4 added 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 labels Apr 28, 2025
@mmalerba
Copy link
Contributor

@alan-agius4 looks like you need to update the goldens

@mmalerba mmalerba removed the action: merge The PR is ready for merge by the caretaker label Apr 28, 2025
@alan-agius4 alan-agius4 added the action: merge The PR is ready for merge by the caretaker label Apr 28, 2025
@mmalerba
Copy link
Contributor

This PR was merged into the repository by commit c037c58.

The changes were merged into the following branches: main

@mmalerba mmalerba closed this in c037c58 Apr 29, 2025
@alan-agius4 alan-agius4 deleted the getCleanupHook branch April 29, 2025 17:51
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
action: merge The PR is ready for merge by the caretaker area: core Issues related to the framework runtime target: major This PR is targeted for the next major release
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants