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:
Paul Gschwendtner
2022-12-10 14:45:57 +00:00
parent c9415e4d75
commit 985dbdb511
-5
View File
@@ -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;