Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Pact V3 support #199

Closed
brendan-donegan opened this issue Oct 6, 2020 · 13 comments
Closed

Pact V3 support #199

brendan-donegan opened this issue Oct 6, 2020 · 13 comments

Comments

@brendan-donegan
Copy link

Hi,

We are using jest-pact in our project and would like to leverage some of the new features in Pact v3. I was wondering if/when v3 support could be added in jest-pact?

@TimothyJones
Copy link
Contributor

Thanks for raising this! This has been asked before (although not tracked here) on pact-foundation/pact-js#483 .

At the time, my thinking was we'd add it when the V3 branch is ready for production use, but I feel like more and more people are using V3 now.

I think it might be better to support it, and instead chase down the remaining issues that prevent V3 being recommended for production.

@TimothyJones
Copy link
Contributor

Update: I've published a draft of a V3 compatible jest-pact. You can pick it up at:

npm install --save-dev jest-pact@0.9.0-beta.v3

Unfortunately, the interface had to change a bit. You can see a usage example in the readme at:

https://github.com/pact-foundation/jest-pact/tree/pact-js-v3#pact-js-v3

I'm not certain about the interface yet, feedback very welcome.

@TimothyJones
Copy link
Contributor

@brendan-donegan Did you try out the V3 pactWith? How did it go for you?

@schowave
Copy link

schowave commented May 10, 2021

We are working with the 0.9.0-beta.v3 right now and it works very well in all of our contract cases. Thank you for suporting the V3 Specification. Do you think there will be a release with the v3 specification soon?

We had an issue after the release of 9.0.0 two days ago: While using the "^0.9.0-beta.v3" syntax, the package manager fetched the 9.0.0 instead of the current V3 beta. So we had to use the fixed version 0.9.0-beta.v3.

@TimothyJones
Copy link
Contributor

TimothyJones commented May 10, 2021 via email

@schowave
Copy link

Are there any Updates on the V3 merge?

@TimothyJones
Copy link
Contributor

We have the provider since nearly done, but there's still work to do on the consumer side. You can follow along with the project here https://github.com/pact-foundation/pact-js/projects/3, or join us on slack if you would like to help out

@TimothyJones
Copy link
Contributor

(I think Matt and I are working on it in pretty much all the spare time we have available for software dev)

@YOU54F
Copy link
Member

YOU54F commented Apr 25, 2022

Great stuff here @TimothyJones & @mefellows

How have people been finding the new interface?

@mefellows
Copy link
Member

There are still some minor teething issues/bugs to sort out in the main Pact JS project, and we currently don't have message support (see https://github.com/pact-foundation/pact-js/projects/3).

The JS core now has all of the requisite APIs for Pact JS, so it's just a public API implementation now mainly to go.

@YOU54F
Copy link
Member

YOU54F commented Aug 8, 2022

mainlined into master for jest-pact 0.10.1+ supporting pact-js 10.0.2+

@TimothyJones
Copy link
Contributor

It is probably a good idea to release a 1.0 of jest pact soon

@YOU54F
Copy link
Member

YOU54F commented Dec 5, 2022

Will close this now, feedback can be provided in this issue

#215

Thanks for everyones help

@YOU54F YOU54F closed this as completed Dec 5, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

5 participants