Skip to content
Draft
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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