fix e2e tests

This commit is contained in:
vsavkin 2017-08-31 10:35:47 -04:00
parent d9a1253bfb
commit 3223582921
4 changed files with 8 additions and 9 deletions

View File

@ -65,11 +65,9 @@ export function exists(filePath: string): boolean {
return directoryExists(filePath) || fileExists(filePath); return directoryExists(filePath) || fileExists(filePath);
} }
export function addNgRx(path: string): string { export function addNgRx(path: string): void {
const p = JSON.parse(readFile(`${path}/package.json`)); runCommand('npm install', {projectName: path});
p['dependencies']['@ngrx/store'] = '4.0.2'; execSync(`cp -r node_modules/@ngrx tmp/${path}/node_modules/@ngrx`);
p['dependencies']['@ngrx/effects'] = '4.0.2'; execSync(`cp -r node_modules/jasmine-marbles tmp/${path}/node_modules/jasmine-marbles`);
p['dependencies']['jasmine-marbles'] = '0.1.0'; execSync(`cp -r node_modules/@nrwl tmp/${path}/node_modules/@nrwl`);
updateFile(`${path}/package.json`, JSON.stringify(p, null, 2));
return runCommand('npm install', {projectName: path});
} }

View File

@ -25,6 +25,7 @@
"@angular/compiler": "4.3.5", "@angular/compiler": "4.3.5",
"@angular/platform-browser-dynamic": "4.3.5", "@angular/platform-browser-dynamic": "4.3.5",
"@angular/router": "4.3.5", "@angular/router": "4.3.5",
"@angular/cli": "1.3.2",
"@ngrx/store": "4.0.3", "@ngrx/store": "4.0.3",
"@ngrx/router-store": "4.0.3", "@ngrx/router-store": "4.0.3",
"@ngrx/effects": "4.0.3", "@ngrx/effects": "4.0.3",

View File

@ -9,7 +9,7 @@ git_repository(
local_repository( local_repository(
name = "build_bazel_rules_typescript", name = "build_bazel_rules_typescript",
path = "node_modules/@bazel/typescript", path = "node_modules/@bazel/typescript",
) )p
local_repository( local_repository(
name = "angular", name = "angular",

View File

@ -2,4 +2,4 @@
./scripts/link.sh ./scripts/link.sh
rm -rf tmp rm -rf tmp
jest --maxWorkers=1 ./build/e2e/schematics jest --maxWorkers=1 ./build/e2e