fix e2e tests
This commit is contained in:
parent
d9a1253bfb
commit
3223582921
12
e2e/utils.ts
12
e2e/utils.ts
@ -65,11 +65,9 @@ export function exists(filePath: string): boolean {
|
||||
return directoryExists(filePath) || fileExists(filePath);
|
||||
}
|
||||
|
||||
export function addNgRx(path: string): string {
|
||||
const p = JSON.parse(readFile(`${path}/package.json`));
|
||||
p['dependencies']['@ngrx/store'] = '4.0.2';
|
||||
p['dependencies']['@ngrx/effects'] = '4.0.2';
|
||||
p['dependencies']['jasmine-marbles'] = '0.1.0';
|
||||
updateFile(`${path}/package.json`, JSON.stringify(p, null, 2));
|
||||
return runCommand('npm install', {projectName: path});
|
||||
export function addNgRx(path: string): void {
|
||||
runCommand('npm install', {projectName: path});
|
||||
execSync(`cp -r node_modules/@ngrx tmp/${path}/node_modules/@ngrx`);
|
||||
execSync(`cp -r node_modules/jasmine-marbles tmp/${path}/node_modules/jasmine-marbles`);
|
||||
execSync(`cp -r node_modules/@nrwl tmp/${path}/node_modules/@nrwl`);
|
||||
}
|
||||
|
||||
@ -25,6 +25,7 @@
|
||||
"@angular/compiler": "4.3.5",
|
||||
"@angular/platform-browser-dynamic": "4.3.5",
|
||||
"@angular/router": "4.3.5",
|
||||
"@angular/cli": "1.3.2",
|
||||
"@ngrx/store": "4.0.3",
|
||||
"@ngrx/router-store": "4.0.3",
|
||||
"@ngrx/effects": "4.0.3",
|
||||
|
||||
@ -9,7 +9,7 @@ git_repository(
|
||||
local_repository(
|
||||
name = "build_bazel_rules_typescript",
|
||||
path = "node_modules/@bazel/typescript",
|
||||
)
|
||||
)p
|
||||
|
||||
local_repository(
|
||||
name = "angular",
|
||||
|
||||
@ -2,4 +2,4 @@
|
||||
|
||||
./scripts/link.sh
|
||||
rm -rf tmp
|
||||
jest --maxWorkers=1 ./build/e2e/schematics
|
||||
jest --maxWorkers=1 ./build/e2e
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user