File tree Expand file tree Collapse file tree 1 file changed +1
-1
lines changed
blog/2025-11-migrate-to-vitest Expand file tree Collapse file tree 1 file changed +1
-1
lines changed Original file line number Diff line number Diff line change @@ -396,7 +396,7 @@ const onItem = vi.fn().mockName('onItem').mockReturnValue(true);
396396Since Angular 21, unit tests run zoneless by default.
397397This means: The old Angular helpers ` waitForAsync() ` and ` fakeAsync() ` /` tick() ` no longer work automatically, because they rely on Zone.js.
398398First of all, this has nothing to do with Vitest.
399- Even under Jasmine, these utilities would have had to be dispensed with in a zone-free environment.
399+ Even under Jasmine, these utilities would have had to be replaced in a zone-free environment.
400400
401401For simple asynchronous tests, you replace ` waitForAsync() ` with normal ` async/await ` , which has also been possible with Jasmine for many years.
402402The following update therefore works independently of the test runner:
You can’t perform that action at this time.
0 commit comments