From 77e1eddbc7d69ee907d2e2801876348cd8f65249 Mon Sep 17 00:00:00 2001 From: afc163 Date: Mon, 23 Oct 2017 22:13:57 +0800 Subject: [PATCH] Fix test case --- tests/run-tests.js | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/tests/run-tests.js b/tests/run-tests.js index 65f4d800..4088043e 100644 --- a/tests/run-tests.js +++ b/tests/run-tests.js @@ -19,7 +19,10 @@ startServer.on('exit', () => { // eslint-disable-next-line console.log('Starting development server for e2e tests...'); startServer.stdout.on('data', (data) => { - if (data.toString().indexOf('The app is running at') >= 0) { + // eslint-disable-next-line + console.log(data.toString()); + if (data.toString().indexOf('The app is running at') >= 0 || + data.toString().indexOf('Compiled with warnings') >= 0) { // eslint-disable-next-line console.log('Development server is started, ready to run tests.'); const testCmd = spawn('npm', ['test'], { -- GitLab