Skip to content

Conversation

@atscott
Copy link
Contributor

@atscott atscott commented Dec 15, 2025

This commit omits the initialization of the taskState when the constructor executes outside the proxy zone. This would generally indicate that either zone.js/dist/zone-testing.js was not included or it does not include patches for the test framework being used (e.g. Vitest). In this case, we should simply omit the initialization of task state tracking, meaning that waitForTasksOutsideAngular will "not work" and simply be a Promise.resolve.

fixes #32542

This commit omits the initialization of the `taskState` when the
constructor executes outside the proxy zone. This would generally
indicate that either `zone.js/dist/zone-testing.js` was not included
_or_ it does not include patches for the test framework being used
(e.g. Vitest). In this case, we should simply omit the initialization of
task state tracking, meaning that `waitForTasksOutsideAngular` will "not
work" and simply be a `Promise.resolve`.

fixes angular#32542
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

2 participants