提交 b16b5c3c 编写于 作者: 陈帅

fix test-all no work in umi

上级 e88d03a8
......@@ -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'], {
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册