feat(zone.js): support vitest patching in zone.js/testing#68395
Closed
hawkgs wants to merge 3 commits into
Closed
Conversation
To support `fakeAsync` usage while using `vitest` as a test runner, Zone.js now provides patching when using the `zone.js/testing` package import. This patching is similar to that of the existing jasmine, mocha, and jest functionality.
3f67ac4 to
19e6548
Compare
alan-agius4
requested changes
Apr 27, 2026
Contributor
alan-agius4
left a comment
There was a problem hiding this comment.
Couple of nits, can you also please update the readme.
atscott
approved these changes
Apr 27, 2026
Contributor
atscott
left a comment
There was a problem hiding this comment.
https://angular.dev/guide/testing/migrating-to-vitest#zonejs-based-helpers-are-not-supported needs to be updated as well.
19e6548 to
8397d2d
Compare
Test `fakeAsync` API in Vitest when Zone.js `vitest` patch applied.
8397d2d to
dd42d18
Compare
amishne
pushed a commit
that referenced
this pull request
Apr 28, 2026
…ion guide Update the Karma to Vitest migration guide to include information about the zone.js Vitest patch that should handle `fakeAsync`. Related to #68395.
Member
|
This PR was merged into the repository. The changes were merged into the following branches:
|
alxhub
pushed a commit
that referenced
this pull request
Apr 30, 2026
Test `fakeAsync` API in Vitest when Zone.js `vitest` patch applied. PR Close #68395
|
This pull request has been automatically locked due to inactivity. Read more about our automatic conversation locking policy. This action has been performed automatically by a bot. |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to subscribe to this conversation on GitHub.
Already have an account?
Sign in.
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
The following PR introduces:
vitestpatch (feat(zone.js): support vitest patching in zone.js/testing #61349).zone.js/plugins/vitest-patchpolyfill explicitly.vitestspec.cc @dgp1130