tgriesser / cypress-graphql-mock

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

Spread currentOps to ensure we keep all mocked operations #4

Closed joefiorini closed 5 years ago

joefiorini commented 5 years ago

Currently when you call mockGraphqlOps with a third operation, it will keep the first & last but drop the one in the middle. This PR spreads currentOps instead of operations to ensure it keeps all mocked operations.

tgriesser commented 5 years ago

Ah, good call, thanks!