-
-
Notifications
You must be signed in to change notification settings - Fork 352
Feat/v4 asynchronous messages #1520
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
Conversation
57654b5 to
46afa02
Compare
b08297a to
34b142f
Compare
| The following test creates a contract for a Dog API handler: | ||
|
|
||
| ```js | ||
| const { MessageConsumerPact, Message, synchronousBodyHandler } = require("@pact-foundation/pact"); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
todo: update docs to reflect v4 api (see examples/v4/messages/consumer/message-consumer.spec.ts. )
|
Looking great so far! Will give it a test drive today |
- Refactors the GraphQL common utilities into a single package - Refactors the V4 HTTP package into multiple files (lint)
Needs cleanup of types and refactoring/extraction of examples This change is also dependent on an upstream change in pact-core
459afe9 to
7c9ff5b
Compare
|
This is a breaking change that might be nice to put these changes under I know you would rather avoid breaking changes but this protects us in some ways :) |
If we do end up with breaking changes in this PR, good idea to release them together for sure. |
|
I think we should be okay, we now have no changes in the existing examples which all still pass, and you've added extra test coverage with more v3/v4 example |
This will be a breaking change for nestjs-pact / jest-pact, just to note, as known consumers. Possibly more. @tienvx asked over in pact-php about defaulting to v4 spec |
|
Updated bits in
|
|
included and merged as part of #1564 |
This change introduces a few major changes:
executeTestfunction for synchronous messagesDepends on upstream change here: pact-foundation/pact-js-core#662
Merge checklist:
pact-coreand merge into branchPactstruct an alias forPactV4