Pact contract test consists of a consumer and a provider. In our case we are going to use a Apollo client consumer and the provider will a graphql server.
For the consumer testing, a graphql contract look like this:
// This is a apollo query; it can be mutation as well
const GET_USER_PROFILE = gql`