Skip to content

Commit

Permalink
fix: fromProviderState incorrectly was a type matcher
Browse files Browse the repository at this point in the history
Fixes #1088
  • Loading branch information
mefellows committed Jun 21, 2024
1 parent 4d78c65 commit f85140b
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion src/v3/matchers.ts
Original file line number Diff line number Diff line change
Expand Up @@ -496,7 +496,7 @@ export function fromProviderState<V>(
exampleValue: V
): ProviderStateInjectedValue<V> {
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,
Expand Down
2 changes: 1 addition & 1 deletion src/v3/types.ts
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@ export type AnyTemplate =
*/
export interface Matcher<T> {
'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<string, T>;
}

Expand Down

0 comments on commit f85140b

Please sign in to comment.