Facing issue when upgrading versions #80
Replies: 4 comments 3 replies
-
@YOU54F could you please help me to figure this out? |
Beta Was this translation helpful? Give feedback.
-
nestjs pact has not been updated to use the latest 12.x+ versions of pact-js i'm afraid. 13.x removes the publisher interface https://github.com/pact-foundation/pact-js/releases/tag/v13.0.0 See PR where someone attempted to start support for the v3 interface |
Beta Was this translation helpful? Give feedback.
-
@YOU54F When tried |
Beta Was this translation helpful? Give feedback.
-
Hey this should now work with nest-js v10, and the latest pact-js (currently v13) examples consumer and provider project in the below link https://github.com/YOU54F/nestjs-pact-test/tree/main/v2_spec/pactjs_v10_nestjspact_v3 |
Beta Was this translation helpful? Give feedback.
-
current versions: of
@pact-foundation/pact
is9.18.1
andnestjs-pact
is2.2.1
. now when I try to update the versions, as per mentioned in the documentation, when I runnpm i -D nestjs-pact @pact-foundation/pact
. it updates the version of@pact-foundation/pact
to13.1.2
andnestjs-pact
to2.3.1
.But now all the test case are failing and getting errors. before mentioning error, I'll show current code setup.
pact.module.ts
file looks like below.and consumer test file looks like below
now when I run test then get below errors.
Beta Was this translation helpful? Give feedback.
All reactions