Akash Srivastava
05/08/2022, 3:25 PMMatt (pactflow.io / pact-js / pact-go)
Matt (pactflow.io / pact-js / pact-go)
Matt (pactflow.io / pact-js / pact-go)
➜ pactjs-consumer-test-example git:(master) ✗ cat log/pact.log <aws:pact-prod>
I, [2022-05-09T14:39:39.419188 #78983] INFO -- : Registered expected interaction POST /graphql
I, [2022-05-09T14:39:39.430839 #78983] INFO -- : Received request POST /graphql
I, [2022-05-09T14:39:39.431203 #78983] INFO -- : Found matching response for POST /graphql
I, [2022-05-09T14:39:39.439586 #78983] INFO -- : Verifying - interactions matched
I, [2022-05-09T14:39:39.442503 #78983] INFO -- : Cleared interactions
I, [2022-05-09T14:39:39.448380 #78983] INFO -- : Registered expected interaction POST /graphql
W, [2022-05-09T14:39:39.457326 #78983] WARN -- : Verifying - actual interactions do not match expected interactions.
Missing requests:
POST /graphql
W, [2022-05-09T14:39:39.457368 #78983] WARN -- : Missing requests:
POST /graphql
I, [2022-05-09T14:39:39.486089 #78983] INFO -- : Cleared interactions
I, [2022-05-09T14:39:39.497316 #78983] INFO -- : Updating pact for App API at /private/tmp/pactjs-consumer-test-example/contract-tests/pacts/app_ui-app_api.json
I, [2022-05-09T14:39:39.498221 #78983] INFO -- : *****************************************************************************
I, [2022-05-09T14:39:39.498300 #78983] INFO -- : Updating existing file ./private/tmp/pactjs-consumer-test-example/contract-tests/pacts/app_ui-app_api.json as pactfile_write_mode is :update
I, [2022-05-09T14:39:39.498334 #78983] INFO -- : Only interactions defined in this test run will be updated.
I, [2022-05-09T14:39:39.498351 #78983] INFO -- : As interactions are identified by description and provider state, pleased note that if either of these have changed, the old interactions won't be removed from the pact file until the specs are next run with :pactfile_write_mode => :overwrite.
I, [2022-05-09T14:39:39.498368 #78983] INFO -- : *****************************************************************************
Matt (pactflow.io / pact-js / pact-go)
Matt (pactflow.io / pact-js / pact-go)
Matt (pactflow.io / pact-js / pact-go)
module.exports = new ApolloClient({
cache: new InMemoryCache({}),
link: createHttpLink({
fetch: require("node-fetch"),
uri: "<http://localhost:1234/graphql>",
}),
});
Matt (pactflow.io / pact-js / pact-go)
Matt (pactflow.io / pact-js / pact-go)
module.exports = new ApolloClient({
cache: new InMemoryCache({}),
link: createHttpLink({
fetch: require("node-fetch"),
uri: "<http://localhost:1234/graphql>",
}),
defaultOptions: {
watchQuery: {
fetchPolicy: "no-cache",
errorPolicy: "ignore",
},
query: {
fetchPolicy: "no-cache",
errorPolicy: "all",
},
},
});
Akash Srivastava
05/09/2022, 6:41 AM