diff --git a/src/messageConsumerPact.ts b/src/messageConsumerPact.ts index 88721fb10..d1fbc3bef 100644 --- a/src/messageConsumerPact.ts +++ b/src/messageConsumerPact.ts @@ -194,7 +194,7 @@ export class MessageConsumerPact { .then(() => { this.pact.writePactFile( this.config.dir ?? DEFAULT_PACT_DIR, - this.config.pactfileWriteMode === 'overwrite' + this.config.pactfileWriteMode !== 'overwrite' ); }) .finally(() => {