You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
[unit-test] karma runner doesn't support zone.js/testing auto injection #30595
Yes, this behavior used to work in the previous version
The previous version in which this bug was not present was
No response
Description
The experimental @angular/build:unit-test injects zone.js/testing into the polyfills of builder option but only for Vitest. In use runner: 'karma', there are no way to load zone.js/testing for the environment.
Error: zone-testing.js is needed for the fakeAsync() test helper but could not be found.
Please make sure that your environment includes zone.js/testing
at fakeAsync
Activity
fix(@angular/build): inject zone.js/testing before karma builder exec…
fix(@angular/build): inject zone.js/testing before karma builder exec…
angular-automatic-lock-bot commentedon Jul 26, 2025
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.