Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feat(mockServer): set preserveResolvers default to true #254

Conversation

cchen9299
Copy link
Contributor

Description

Motivation and Context

#253

How Has This Been Tested?

Tested locally with an OneApp module, but I'm unsure whether sharing screenshots of our local development screens in a public github PR breaches any American Express HR violation. I'm on Web and Mobile Slack!

Types of Changes

  • Bug fix (non-breaking change which fixes an issue)
  • New feature (non-breaking change which adds functionality)
  • Breaking change (fix or feature that would cause existing functionality to not work as expected)
  • Documentation (adding or updating documentation)
  • Dependency update

Checklist:

  • My change requires a change to the documentation and I have updated the documentation accordingly.
  • My changes are in sync with the code style of this project.
  • There aren't any other open Pull Requests for the same issue/update.
  • These changes should be applied to a maintenance branch.
  • This change requires cross browser checks.
  • This change impacts caching for client browsers.
  • I have added the Apache 2.0 license header to any new files created.

What is the Impact to Developers Using parrot?

@cchen9299 cchen9299 requested a review from a team as a code owner August 30, 2024 23:35
@CLAassistant
Copy link

CLAassistant commented Aug 30, 2024

CLA assistant check
All committers have signed the CLA.

@@ -14,8 +14,8 @@

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

module.exports = function graphql(path, schema, mocks) {
const server = mockServer(schema, mocks);
module.exports = function graphql(path, schema, mocks, path, schema, mocks, preserveResolvers = true) {
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

you've duplicated function params here

Copy link
Contributor Author

@cchen9299 cchen9299 Sep 29, 2024

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

whelp that was embarrassing :P must have fat fingered something and should have properly setup public github on my work laptop.. updated in code editor this time..

also added an eslint disable for the new forth arg so it's backwards compatible for this small change

Thanks for reviewing Matt!

@smackfu smackfu requested a review from a team October 24, 2024 19:16
@Matthew-Mallimo Matthew-Mallimo enabled auto-merge (squash) November 5, 2024 19:43
@Matthew-Mallimo Matthew-Mallimo merged commit 1aae4c4 into americanexpress:main Nov 5, 2024
4 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants