Commit 77e1eddb authored by afc163's avatar afc163

Fix test case

parent cd0248ea
...@@ -19,7 +19,10 @@ startServer.on('exit', () => { ...@@ -19,7 +19,10 @@ startServer.on('exit', () => {
// eslint-disable-next-line // eslint-disable-next-line
console.log('Starting development server for e2e tests...'); console.log('Starting development server for e2e tests...');
startServer.stdout.on('data', (data) => { 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 // eslint-disable-next-line
console.log('Development server is started, ready to run tests.'); console.log('Development server is started, ready to run tests.');
const testCmd = spawn('npm', ['test'], { const testCmd = spawn('npm', ['test'], {
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment