build(bazel): update to nodejs rules 0.27.9 (#29647)

PR Close #29647
This commit is contained in:
Greg Magolan
2019-04-01 16:59:36 -07:00
committed by Jason Aden
parent 0e201ea9d8
commit 7c1f73ac7b
10 changed files with 163 additions and 48 deletions

View File

@ -15,14 +15,9 @@ import 'zone.js/dist/fake-async-test.js';
import 'zone.js/dist/task-tracking.js';
import 'reflect-metadata/Reflect';
// We must first initialize jasmine-core before calling
// requiring `zone.js/dist/jasmine-patch.js` which patches
// 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);
// Initialize jasmine with @bazel/jasmine boot() function. This will initialize
// global.jasmine so that it can be patched by zone.js jasmine-patch.js.
require('@bazel/jasmine').boot();
import 'zone.js/dist/jasmine-patch.js';
(global as any).isNode = true;