From b16b5c3c1508bbcc17292b91b646feb9162a36d3 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E9=99=88=E5=B8=85?= Date: Wed, 5 Sep 2018 20:44:47 +0800 Subject: [PATCH] fix test-all no work in umi --- tests/run-tests.js | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) diff --git a/tests/run-tests.js b/tests/run-tests.js index a1b6f259..a5e687a9 100644 --- a/tests/run-tests.js +++ b/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'], { -- GitLab