From 46acc70e21a9efa46917af0d2975c9b245773cda Mon Sep 17 00:00:00 2001 From: mefellows Date: Thu, 21 Dec 2023 21:44:36 +1100 Subject: [PATCH] fix: PactV4 should default to V4 spec --- src/v4/index.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/v4/index.ts b/src/v4/index.ts index d8bd3715e..87ee74830 100644 --- a/src/v4/index.ts +++ b/src/v4/index.ts @@ -25,7 +25,7 @@ export class PactV4 implements V4ConsumerPact { this.pact = makeConsumerPact( this.opts.consumer, this.opts.provider, - this.opts.spec ?? SpecificationVersion.SPECIFICATION_VERSION_V3, + this.opts.spec ?? SpecificationVersion.SPECIFICATION_VERSION_V4, this.opts.logLevel ?? 'info' ); }