code-examples icon indicating copy to clipboard operation
code-examples copied to clipboard

React Consumer side PACT are not working/creating

Open jyotigupta001 opened this issue 4 years ago • 0 comments

While running the consumer graphql contract test command: yarn test:pact:graphql

Sharing path for reference : https://github.com/thombergs/code-examples/tree/master/pact/pact-react-consumer

It is giving the following error:

Error: Network error: request to http://localhost:8080/graphql failed, reason: connect ECONNREFUSED 127.0.0.1:8080
    at new ApolloError (/code-examples/pact/pact-react-consumer/node_modules/src/errors/ApolloError.ts:56:5)
    at /code-examples/pact/pact-react-consumer/node_modules/src/core/QueryManager.ts:509:31
    at /code-examples/pact/pact-react-consumer/node_modules/src/core/QueryManager.ts:1041:11
    at Array.forEach (<anonymous>)
    at /code-examples/pact/pact-react-consumer/node_modules/src/core/QueryManager.ts:1040:10
    at Map.forEach (<anonymous>)

jyotigupta001 avatar Sep 25 '21 15:09 jyotigupta001