Skip to content

Commit

Permalink
wip
Browse files Browse the repository at this point in the history
  • Loading branch information
privatenumber committed Nov 2, 2023
1 parent 573b30e commit 6144965
Showing 1 changed file with 6 additions and 5 deletions.
11 changes: 6 additions & 5 deletions tests/specs/watch.ts
Original file line number Diff line number Diff line change
Expand Up @@ -254,11 +254,12 @@ export default testSuite(async ({ describe }) => {
entryFile,
],
});
onTestFail(async (error) => {
console.error(error);
tsxProcess.kill();
const result = await tsxProcess;
console.error(result);
onTestFail(async () => {
if (tsxProcess.exitCode === null) {
tsxProcess.kill();
const result = await tsxProcess;
console.error(result);
}
});

const negativeSignal = '"fail"';
Expand Down

0 comments on commit 6144965

Please sign in to comment.