mirror of
https://github.com/angular/angular.git
synced 2026-09-14 13:54:52 +08:00
build: remove unnecessary import to @bazel/jasmine (#48521)
Since we no properly initialize as part of the spec-entrypoint the hacky logic starting Jasmine can be removed. The init file now runs before tests run, but after Jasmine is initialized. Calling `boot` while Jasmine is already initialized results in tests executing in a different context and before other initialization work completes. PR Close #48521
This commit is contained in:
@@ -14,11 +14,6 @@ import 'zone.js/lib/zone-spec/sync-test';
|
||||
import 'zone.js/lib/testing/async-testing';
|
||||
import 'zone.js/lib/testing/fake-async';
|
||||
import 'reflect-metadata/Reflect';
|
||||
|
||||
// Initialize jasmine with @bazel/jasmine boot() function. This will initialize
|
||||
// global.jasmine so that it can be patched by zone.js jasmine-patch.js.
|
||||
(await import('@bazel/jasmine' as any)).boot();
|
||||
|
||||
import 'zone.js/lib/jasmine/jasmine';
|
||||
|
||||
(global as any).isNode = true;
|
||||
|
||||
Reference in New Issue
Block a user