Skip to content

Commit

Permalink
fix: Verifier now accepts explicitly setting options to undefined (it…
Browse files Browse the repository at this point in the history
… will ignore and warn). This fixes a regression introduced in beta-45
  • Loading branch information
TimothyJones committed Sep 22, 2021
1 parent 86c35b0 commit 7521c61
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions src/ffi/argumentMapper/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,12 @@ export const argumentMapper = <PactOptions>(
}
return [];
}
if (options[key] === undefined) {
logger.warn(
`The Verifier option '${key}' was was explicitly set to undefined and will be ignored. This may indicate an error in your config. Remove the option entirely to prevent this warning`
);
return [];
}
if (argMapping[key].warningMessage) {
logger.warn(argMapping[key].warningMessage);
return [];
Expand Down

0 comments on commit 7521c61

Please sign in to comment.