From a95d272ea56aafa1ec4af90b8a34822ae98f0f79 Mon Sep 17 00:00:00 2001 From: Hank Chen Date: Sun, 29 Sep 2024 13:59:08 -0700 Subject: [PATCH] feat(mockServer): set preserveResolvers default to true --- packages/parrot-graphql/src/index.js | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/packages/parrot-graphql/src/index.js b/packages/parrot-graphql/src/index.js index 702aeaf4..1b2ac865 100644 --- a/packages/parrot-graphql/src/index.js +++ b/packages/parrot-graphql/src/index.js @@ -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: {