Commit b16b5c3c authored by ι™ˆεΈ…'s avatar ι™ˆεΈ…

fix test-all no work in umi

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