From f85140b71ac5ce862cf34ea3e46c40645665030a Mon Sep 17 00:00:00 2001 From: mefellows Date: Fri, 21 Jun 2024 13:22:36 +1000 Subject: [PATCH] fix: fromProviderState incorrectly was a type matcher Fixes #1088 --- src/v3/matchers.ts | 2 +- src/v3/types.ts | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/src/v3/matchers.ts b/src/v3/matchers.ts index 39a3b53dc..917953c0d 100644 --- a/src/v3/matchers.ts +++ b/src/v3/matchers.ts @@ -496,7 +496,7 @@ export function fromProviderState( exampleValue: V ): ProviderStateInjectedValue { return { - 'pact:matcher:type': 'type', + 'pact:matcher:type': '', // TODO: split generators out from matchers in next major release 'pact:generator:type': 'ProviderState', expression, value: exampleValue, diff --git a/src/v3/types.ts b/src/v3/types.ts index 155237c8f..0fcca39fc 100644 --- a/src/v3/types.ts +++ b/src/v3/types.ts @@ -33,7 +33,7 @@ export type AnyTemplate = */ export interface Matcher { 'pact:matcher:type': string; - 'pact:generator:type'?: string; + 'pact:generator:type'?: string; // In the future, we should split out generator from matchers (they are different things) value?: T | Record; }