Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix: fromProviderState incorrectly was a type matcher #1223

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
Open
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
Loading