Skip to content

Commit

Permalink
fix: throw error if V4 test closure fails. Fixes #904
Browse files Browse the repository at this point in the history
  • Loading branch information
mefellows committed Jul 28, 2022
1 parent 4b40816 commit 6b78bed
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion src/v3/pact.ts
Expand Up @@ -198,7 +198,9 @@ export class PactV3 {
try {
val = await testFn(server);
} catch (e) {
logger.error(e.message);
this.cleanup(false, server);

throw e;
}

const matchingResults = this.pact.mockServerMismatches(port);
Expand Down

0 comments on commit 6b78bed

Please sign in to comment.