Skip to content

Commit

Permalink
Update test/parallel/test-runner-watch-mode-complex.mjs
Browse files Browse the repository at this point in the history
Co-authored-by: Chemi Atlow <chemi@atlow.co.il>
  • Loading branch information
jakecastelli and atlowChemi authored Jun 28, 2024
1 parent abbcfa6 commit d79b8d7
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion test/parallel/test-runner-watch-mode-complex.mjs
Original file line number Diff line number Diff line change
Expand Up @@ -62,8 +62,11 @@ describe('test runner watch mode with more complex setup', () => {
currentRun += data.toString();
const testRuns = stdout.match(/# duration_ms\s\d+/g);

if (testRuns?.length >= 2) {
ran2.resolve();
return;
}
if (testRuns?.length >= 1) ran1.resolve();
if (testRuns?.length >= 2) ran2.resolve();
});

await ran1.promise;
Expand Down

0 comments on commit d79b8d7

Please sign in to comment.