Skip to content

Commit

Permalink
fix(core): add debug info to tests to troubleshoot flaky tests
Browse files Browse the repository at this point in the history
  • Loading branch information
vsavkin committed Feb 19, 2020
1 parent a849b4d commit 16e90b3
Showing 1 changed file with 14 additions and 3 deletions.
17 changes: 14 additions & 3 deletions e2e/new.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -78,9 +78,20 @@ forEachCli(() => {
expectTestsPass(await runCLIAsync(`test my-dir-${mylib} --no-watch`));

if (supportUi()) {
expect(
runCLI(`e2e my-dir-${myapp}-e2e --headless --no-watch`)
).toContain('All specs passed!');
try {
const r = runCLI(`e2e my-dir-${myapp}-e2e --headless --no-watch`);
console.log(r);
expect(r).toContain('All specs passed!');
} catch (e) {
console.log(e);
if (e.stdout) {
console.log(e.stdout.toString());
}
if (e.stderr) {
console.log(e.stdout.toString());
}
throw e;
}
}
}, 1000000);

Expand Down

0 comments on commit 16e90b3

Please sign in to comment.