Skip to content

Commit

Permalink
feat(mockServer): set preserveResolvers default to true (#254)
Browse files Browse the repository at this point in the history
Co-authored-by: Scott McIntyre <[email protected]>
Co-authored-by: Matthew Mallimo <[email protected]>
  • Loading branch information
3 people authored Nov 5, 2024
1 parent 652882f commit 1aae4c4
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions packages/parrot-graphql/src/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -14,8 +14,9 @@

const { mockServer } = require('@graphql-tools/mock');

module.exports = function graphql(path, schema, mocks) {
const server = mockServer(schema, mocks);
// eslint-disable-next-line max-params
module.exports = function graphql(path, schema, mocks, preserveResolvers = true) {
const server = mockServer(schema, mocks, preserveResolvers);
return {
request: ({ method }, match) => match({ path }) && (method === 'GET' || method === 'POST'),
response: {
Expand Down

0 comments on commit 1aae4c4

Please sign in to comment.