Skip to content

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

Closed
alan-agius4 wants to merge 2 commits intoangular:mainfrom
alan-agius4:getCleanupHook
Closed

refactor(core): expose getCleanupHook via private exports#61017
alan-agius4 wants to merge 2 commits intoangular:mainfrom
alan-agius4:getCleanupHook

Conversation

@alan-agius4
Copy link
Copy Markdown
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
Copy Markdown
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
Copy Markdown
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
Copy Markdown
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
@angular-automatic-lock-bot
Copy link
Copy Markdown

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 May 30, 2025
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 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