Skip to content
This repository was archived by the owner on Dec 4, 2017. It is now read-only.

Commit 68e61f2

Browse files
chalinkwalrath
authored andcommitted
chore(e2e): re-enable Dart e2e tests (#2673)
1 parent e9d40ab commit 68e61f2

File tree

1 file changed

+4
-2
lines changed

1 file changed

+4
-2
lines changed

gulpfile.js

+4-2
Original file line numberDiff line numberDiff line change
@@ -364,11 +364,13 @@ function runProtractorAoT(appDir, outputFile) {
364364
// fileName; then shut down the example. All protractor output is appended
365365
// to the outputFile.
366366
function runE2eDartTests(appDir, outputFile) {
367-
var deployDir = path.resolve(path.join(appDir, 'build/web'));
367+
// Launch http server out of ts directory because all the config files are there.
368+
var httpLaunchDir = path.resolve(appDir, '../ts');
369+
var deployDir = path.resolve(appDir, 'build/web');
368370
gutil.log('AppDir for Dart e2e: ' + appDir);
369371
gutil.log('Deploying from: ' + deployDir);
370372

371-
var appRunSpawnInfo = spawnExt('npm', ['run', 'http-server:e2e', '--', deployDir, '-s'], { cwd: EXAMPLES_PATH });
373+
var appRunSpawnInfo = spawnExt('npm', ['run', 'http-server:e2e', '--', deployDir, '-s'], { cwd: httpLaunchDir });
372374
if (!appRunSpawnInfo.proc.pid) {
373375
gutil.log('http-server failed to launch over ' + deployDir);
374376
return false;

0 commit comments

Comments
 (0)