Forráskód Böngészése

try fix test error (#3424)

* try fix test error

* try fix ci error in windows
陈帅 7 éve
szülő
commit
da173d6092
2 módosított fájl, 5 hozzáadás és 2 törlés
  1. 0 1
      jest-puppeteer.config.js
  2. 5 1
      tests/run-tests.js

+ 0 - 1
jest-puppeteer.config.js

@@ -9,7 +9,6 @@ module.exports = {
       '--no-first-run',
       '--no-sandbox',
       '--no-zygote',
-      '--single-process',
     ],
   },
 };

+ 5 - 1
tests/run-tests.js

@@ -24,7 +24,11 @@ startServer.on('exit', () => {
 console.log('Starting development server for e2e tests...');
 startServer.stdout.on('data', data => {
   console.log(data.toString());
-  if (!once && data.toString().indexOf('Compiled successfully') >= 0) {
+  // hack code , wait umi
+  if (
+    (!once && data.toString().indexOf('Compiled successfully') >= 0) ||
+    data.toString().indexOf('Theme generated successfully') >= 0
+  ) {
     // eslint-disable-next-line
     once = true;
     console.log('Development server is started, ready to run tests.');