tgriesser / cypress-graphql-mock

Adds commands for executing a mocked GraphQL server using only the client
171 stars 43 forks source link

fix(apollo): provide `executableSchema` #28

Open iam4x opened 5 years ago

iam4x commented 5 years ago

this closes #23

negue commented 4 years ago

@tgriesser could you merge it?

viperfx commented 4 years ago

@tgriesser please merge this!

iam4x commented 4 years ago

🆙

craigdrayton commented 4 years ago

+1

dskelton-r7 commented 4 years ago

As people are waiting for this to be merged, I thought I would share what I did, which is use patch package https://github.com/ds300/patch-package To apply this one line patch.

The patch is commited along with source control so is always applied after an npm or yarn install.

iam4x commented 4 years ago

Like I said in the issue itself, you can also directly use my fork =>

Hey

I've published a package with the fix in the meantime: npm install @iam4x/cypress-graphql-mock

It also includes another feature:

  • If you dont provided a mock for an operation
  • The original request would be made and resolved