Procházet zdrojové kódy

fix test-all no work in umi

陈帅 před 7 roky
rodič
revize
b16b5c3c15
1 změnil soubory, kde provedl 1 přidání a 4 odebrání
  1. 1 4
      tests/run-tests.js

+ 1 - 4
tests/run-tests.js

@@ -22,10 +22,7 @@ console.log('Starting development server for e2e tests...');
 startServer.stdout.on('data', data => {
   // eslint-disable-next-line
   console.log(data.toString());
-  if (
-    data.toString().indexOf('Compiled successfully') >= 0 ||
-    data.toString().indexOf('Compiled with warnings') >= 0
-  ) {
+  if (data.toString().indexOf('App running at') >= 0) {
     // eslint-disable-next-line
     console.log('Development server is started, ready to run tests.');
     const testCmd = spawn(/^win/.test(process.platform) ? 'npm.cmd' : 'npm', ['test'], {