mirror of
https://github.com/angular/angular.git
synced 2026-11-23 07:05:14 -05:00
Updates Jasmine dependencies across the workspace to v7, retaining Jasmine 6 in packages/zone.js for its internal tests. To support Jasmine 7 without relying on zone.js/plugins/jasmine-patch (which cannot patch Jasmine 7 due to frozen environment properties and internal API changes), unit tests across packages have been migrated off fakeAsync and waitForAsync to standard asynchronous APIs (whenStable, useAutoTick, timeout, and jasmine.clock).
The spec helper files here set up the global testing environment prior to the execution of specs.
There are 3 options:
init_node_spec- configures a node environment to test Angular applications with platform-server.init_node_no_angular_spec- configures a node environment for testing without setting up Angular's testbed (no dependency on Angular packages is incurred).init_browser_spec- configures a browser environment to test Angular applications.