瀏覽代碼

Fix test case

afc163 8 年之前
父節點
當前提交
77e1eddbc7
共有 1 個文件被更改,包括 4 次插入1 次删除
  1. 4 1
      tests/run-tests.js

+ 4 - 1
tests/run-tests.js

@@ -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'], {