Skip to content

Commit 7521c61

Browse files
committed
fix: Verifier now accepts explicitly setting options to undefined (it will ignore and warn). This fixes a regression introduced in beta-45
1 parent 86c35b0 commit 7521c61

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

src/ffi/argumentMapper/index.ts

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -14,6 +14,12 @@ export const argumentMapper = <PactOptions>(
1414
}
1515
return [];
1616
}
17+
if (options[key] === undefined) {
18+
logger.warn(
19+
`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`
20+
);
21+
return [];
22+
}
1723
if (argMapping[key].warningMessage) {
1824
logger.warn(argMapping[key].warningMessage);
1925
return [];

0 commit comments

Comments
 (0)