Hi all, looking at <pact-cypress-adapter> for pact...
# pact-js
r
Hi all, looking at pact-cypress-adapter for pact bi-directional flow. This can only intercept requests made client side right? Any advice to cover request made server-side in a NextJS app (SSR) for example?
y
Hello Romu, long time. it’s designed to work with cypresses own request interception mechanism. Are you testing your nextjs ssr app with cypress?
It’s works similar to pmpact, it just leverages whatever mechanism in the native test tool you are using and converts that into a pact specification
oh sorry pmpact is the inverse, pact -> postman
r
Hey @Yousaf Nabi (pactflow.io) Yes we have an SSR NextJS App, with requests on the server-side (using NodeJS) and client-side (using XHR). I thought that Cypress was not able to intercept server-side requests but it seems that it does if I read that well: https://docs.cypress.io/guides/guides/network-requests So that should be all good, I just misunderstood what I could and could not do. Thanks for looking into that!
Sorry another question, how is the GraphQL support with the bi-directional flow. I know that’s just http requests, but any difficulties or blockers in intercepting graphQL requests to generate the Pact contracts?