
committed by
Ben Lesh

parent
f76a9ad156
commit
976389836e
@ -14,6 +14,9 @@ import {main, readCommandLineAndConfiguration, watchMode} from '../../src/main';
|
||||
import {TestSupport, isInBazel, makeTempDir, setup} from '../test_support';
|
||||
|
||||
function setupFakeCore(support: TestSupport): void {
|
||||
if (!process.env.TEST_SRCDIR) {
|
||||
throw new Error('`setupFakeCore` must be run within a Bazel test');
|
||||
}
|
||||
const fakeCore = path.join(
|
||||
process.env.TEST_SRCDIR, 'angular/packages/compiler-cli/test/ngtsc/fake_core/npm_package');
|
||||
|
||||
|
@ -110,6 +110,9 @@ function createTestSupportFor(basePath: string) {
|
||||
}
|
||||
|
||||
export function setupBazelTo(basePath: string) {
|
||||
if (!process.env.TEST_SRCDIR) {
|
||||
throw new Error('`setupBazelTo()` must only be called from in a Bazel job.');
|
||||
}
|
||||
const sources = process.env.TEST_SRCDIR;
|
||||
const packages = path.join(sources, 'angular/packages');
|
||||
const nodeModulesPath = path.join(basePath, 'node_modules');
|
||||
|
Reference in New Issue
Block a user