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
Since Angular 18, zoneless applications are available experimentally.
The main advantages are described here: https://angular.dev/guide/experimental/zoneless
It is possible to configure TestBed accordingly to ensure the components under test are zoneless-compatible:
MyComponent › should render
thrown: "Zone is needed for the waitForAsync() test helper but could not be found. Please make sure that your environment includes zone.js"
It would be a huge improvement to see Spectator be zoneless-compatible.
Thanks for all your amazing work
Proposed solution
--
Alternatives considered
No alternative considerations.
Do you want to create a pull request?
No
The text was updated successfully, but these errors were encountered:
Description
Since Angular 18, zoneless applications are available experimentally.
The main advantages are described here: https://angular.dev/guide/experimental/zoneless
It is possible to configure
TestBed
accordingly to ensure the components under test are zoneless-compatible:The spectator equivalent looks like:
But, it does not work, as it uses
waitForAsync
under the hood:https://github.com/ngneat/spectator/blob/v19.0.0/projects/spectator/src/lib/spectator/create-factory.ts#L127
It would be a huge improvement to see Spectator be zoneless-compatible.
Thanks for all your amazing work
Proposed solution
--
Alternatives considered
No alternative considerations.
Do you want to create a pull request?
No
The text was updated successfully, but these errors were encountered: