Dmitry Munda
08/30/2022, 8:14 AM9.17.3 to 10.1.2 and having
TypeError: includeWipPactsSince
looks like it cant be undefined anymore
line triggering error
includeWipPactsSince: isCI ? new Date(Date.now() - 7 * 24 * 60 * 60 * 1000).toISOString().split("T")[0] : undefined,Matt (pactflow.io / pact-js / pact-go)
Dmitry Munda
08/30/2022, 10:10 AMDmitry Munda
08/30/2022, 10:16 AMMatt (pactflow.io / pact-js / pact-go)
Dmitry Munda
08/30/2022, 10:37 AMThe pact consumer core returned false at 'uponReceiving'. This
should only happen if the core methods were invoked out of order
This is almost certainly a bug in pact-js-core. It would be great if you could
open a bug report at: <https://github.com/pact-foundation/pact-js-core/issues>
so that we can fix it.
will check moreMatt (pactflow.io / pact-js / pact-go)
Timothy Jones
08/30/2022, 11:31 PMTimothy Jones
08/30/2022, 11:31 PMTimothy Jones
08/30/2022, 11:32 PMincludeWipPactsSinceTimothy Jones
08/30/2022, 11:33 PMTimothy Jones
08/30/2022, 11:35 PM{
...(someTest ? { optionalParam: value } : {}),
}
instead of
{
optionalParam: someTest ? value : undefined,
}Timothy Jones
08/30/2022, 11:36 PMTimothy Jones
08/30/2022, 11:50 PMTimothy Jones
08/30/2022, 11:52 PMlogLevel: 'INFO'. I think that’s worth fixing - Matt, I can make a PR if you likeTimothy Jones
08/31/2022, 12:03 AMfoo: someTest ? value : undefined was/is idiomatic in javascript, but I think warning that “this might be a mistake” is still valuable.Timothy Jones
08/31/2022, 12:25 AMexactOptionalPropertyTypes? I think the breaking change might be in your TS settings and not in Pact -
https://www.typescriptlang.org/docs/handbook/release-notes/typescript-4-4.html#exact-optional-property-types---exactoptionalpropertytypesTimothy Jones
08/31/2022, 1:27 PMDmitry Munda
08/31/2022, 2:46 PMDmitry Munda
08/31/2022, 2:46 PMexactOptionalPropertyTypesDmitry Munda
08/31/2022, 2:47 PM"typescript": "4.7.4"Dmitry Munda
08/31/2022, 3:20 PMundefined with {} it became better ( which is kinda weird )