From 68e61f20d8a5998b1cc261969680b1d1a3739911 Mon Sep 17 00:00:00 2001 From: Patrice Chalin Date: Wed, 26 Oct 2016 06:10:42 -0700 Subject: [PATCH] chore(e2e): re-enable Dart e2e tests (#2673) --- gulpfile.js | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/gulpfile.js b/gulpfile.js index 399901c7cd..a6d2aff1b9 100644 --- a/gulpfile.js +++ b/gulpfile.js @@ -364,11 +364,13 @@ function runProtractorAoT(appDir, outputFile) { // fileName; then shut down the example. All protractor output is appended // to the outputFile. function runE2eDartTests(appDir, outputFile) { - var deployDir = path.resolve(path.join(appDir, 'build/web')); + // Launch http server out of ts directory because all the config files are there. + var httpLaunchDir = path.resolve(appDir, '../ts'); + var deployDir = path.resolve(appDir, 'build/web'); gutil.log('AppDir for Dart e2e: ' + appDir); gutil.log('Deploying from: ' + deployDir); - var appRunSpawnInfo = spawnExt('npm', ['run', 'http-server:e2e', '--', deployDir, '-s'], { cwd: EXAMPLES_PATH }); + var appRunSpawnInfo = spawnExt('npm', ['run', 'http-server:e2e', '--', deployDir, '-s'], { cwd: httpLaunchDir }); if (!appRunSpawnInfo.proc.pid) { gutil.log('http-server failed to launch over ' + deployDir); return false;