Skip to content

Conversation

clydin
Copy link
Member

@clydin clydin commented May 15, 2025

To provide improved Zone.js support with the experimental unit-test builder using the vitest runner, the TestBed initialization now uses the global beforeEach/afterEach test hooks. The global hooks can be patched by Zone.js. The vitest globals are always available when using the unit-test builder.

To provide improved Zone.js support with the experimental `unit-test` builder
using the `vitest` runner, the TestBed initialization now uses the global
`beforeEach`/`afterEach` test hooks. The global hooks can be patched by
Zone.js. The vitest globals are always available when using the `unit-test`
builder.
@clydin clydin requested a review from alan-agius4 May 15, 2025 17:20
@clydin clydin added the target: rc This PR is targeted for the next release-candidate label May 15, 2025
@clydin clydin removed the request for review from alan-agius4 May 15, 2025 21:06
@clydin clydin added the action: merge The PR is ready for merge by the caretaker label May 15, 2025
@clydin clydin merged commit 1d26eb5 into angular:main May 15, 2025
33 checks passed
@clydin
Copy link
Member Author

clydin commented May 15, 2025

The changes were merged into the following branches: main, 20.0.x

@clydin clydin deleted the unit-test/vitest-globals-setup branch May 15, 2025 21:07
@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 Jun 15, 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: @angular/build target: rc This PR is targeted for the next release-candidate

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants