Closed sjiwani-skillz closed 3 years ago
Ah, thank you! That’s definitely a mistake. I’ll get it fixed up.
This is fixed in jest-pact v0.9.0, releasing shortly.
I had to increase the peer dependency for pact to 9.12.2 (although that won't affect anyone experiencing this issue, because it only happens from 9.15.0 onwards, it might affect others who haven't experienced this issue yet).
Thanks for the report!
The following error is thrown when running
tsc
in my project:The issue seems to be stemming from this line: https://github.com/pact-foundation/jest-pact/blob/dc23a09f02d40a15c3f2b0812f0b1bc0e77bf830/src/types.ts#L5
If I change the import to be
import { MessageConsumerOptions, PactOptions } from '@pact-foundation/pact';
orimport { MessageConsumerOptions, PactOptions } from '@pact-foundation/pact/src/dsl/options';
it works.@pact-foundation/pact - version : 9.15.5 jest-pact - version: 0.8.3