test(e2e): refactor e2e to use deeplink decorator, lazy load more pages

This commit is contained in:
Dan Bucholtz
2017-03-11 00:15:38 -06:00
committed by GitHub
parent 3118bbbd1b
commit 0964c850d4
290 changed files with 2083 additions and 1865 deletions

View File

@ -1,5 +1,5 @@
import { fork, ChildProcess } from 'child_process';
import { join } from 'path';
import { dirname, join } from 'path';
import { MessageToWorker, WorkerProcess } from './interfaces';
@ -55,11 +55,15 @@ export function createWorker(msg: MessageToWorker): any {
}
}
// default it to use the test/basic, or test/xyz directory
const deepLinksDir = dirname(dirname(msg.appNgModulePath));
try {
let scriptArgs = [
'build',
'--appEntryPoint', msg.appEntryPoint,
'--appNgModulePath', msg.appNgModulePath,
'--deepLinksDir', deepLinksDir,
'--srcDir', msg.srcDir,
'--wwwDir', msg.distDir,
'--tsconfig', msg.tsConfig,