build(bazel): also back out of jasmine bootstrap simplification (#29444)
PR Close #29444
This commit is contained in:
parent
861d6f1523
commit
0b27c09b51
|
@ -15,9 +15,14 @@ import 'zone.js/dist/fake-async-test.js';
|
||||||
import 'zone.js/dist/task-tracking.js';
|
import 'zone.js/dist/task-tracking.js';
|
||||||
import 'reflect-metadata/Reflect';
|
import 'reflect-metadata/Reflect';
|
||||||
|
|
||||||
// Initialize jasmine with @bazel/jasmine boot() function. This will initialize
|
// We must first initialize jasmine-core before calling
|
||||||
// global.jasmine so that it can be patched by zone.js jasmine-patch.js.
|
// requiring `zone.js/dist/jasmine-patch.js` which patches
|
||||||
require('@bazel/jasmine').boot();
|
// jasmine ENV with code which understands ProxyZone.
|
||||||
|
// jasmine_node_test under Bazel will check if `jasmineCore.boot(jasmineCore)`
|
||||||
|
// has been called and re-use the env if it has.
|
||||||
|
// See https://github.com/bazelbuild/rules_nodejs/pull/539
|
||||||
|
const jasmineCore: any = require('jasmine-core');
|
||||||
|
jasmineCore.boot(jasmineCore);
|
||||||
import 'zone.js/dist/jasmine-patch.js';
|
import 'zone.js/dist/jasmine-patch.js';
|
||||||
|
|
||||||
(global as any).isNode = true;
|
(global as any).isNode = true;
|
||||||
|
|
Loading…
Reference in New Issue