Skip to content

Commit

Permalink
fixup! chore(test): improve log output on error
Browse files Browse the repository at this point in the history
  • Loading branch information
mmarchini committed Jul 15, 2023
1 parent 8001691 commit 6631335
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions test/common.js
Original file line number Diff line number Diff line change
Expand Up @@ -71,8 +71,8 @@ function startFixtureProcess(t, withInspector = false, port = '0') {
child.stderr.on('data', (data) => output += `[${ child.pid }][stderr] ${ data }`);
const fixture = new FixtureProcess(child);
fixture.on('timeout', t.fail);
t.once('result', ({ ok }) => { if (!ok) { console.log(output) } });
t.teardown(() => fixture.exit());
t.once('result', ({ ok }) => { console.log('testing things out'); if (!ok) { console.log(output) } });
t.teardown(() => { console.log('666'); fixture.exit(); });
return fixture;
}

Expand Down

0 comments on commit 6631335

Please sign in to comment.