Replies: 2 comments 3 replies
-
Can you please share the code? This usually means a mishandled promise or that your API client is not sending the request to the mock server |
Beta Was this translation helpful? Give feedback.
1 reply
-
The problem is this line is not sending a request to the pact mock service, it's sending it to your provider. You don't start your provider in a consumer test, the whole point is to decouple them:
Check out the examples in this repository for how to do this. |
Beta Was this translation helpful? Give feedback.
2 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
When I run npm run test:consumer I get the following error. When I remove line 26 the tests passes.
Test Suites: 1 failed, 1 total
Tests: 1 failed, 1 total
Snapshots: 0 total
Time: 0.855s, estimated 1s
Ran all test suites matching /tests/contract/consumer/i.
Beta Was this translation helpful? Give feedback.
All reactions