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: add uiGraphQLApi module #310

Merged
merged 3 commits into from
Apr 24, 2023
Merged

feat: add uiGraphQLApi module #310

merged 3 commits into from
Apr 24, 2023

Conversation

scarrawaySF
Copy link
Collaborator

Re-exporting the uiGraphQLApi module for testing.


export class graphql extends createTestWireAdapter() {
static emit(value, filterFn) {
super.emit({ data: value, errors: undefined }, filterFn);
Copy link
Contributor

Choose a reason for hiding this comment

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

Is this required? errors: undefined. The default value for unset object keys is undefined

Copy link
Collaborator Author

Choose a reason for hiding this comment

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

I'm not really sure - but it's what our stub in lightning-components has

scarrawaySF and others added 2 commits April 17, 2023 15:16
Co-authored-by: Ravi Jayaramappa <ravi.jayaramappa@salesforce.com>
@ravijayaramappa ravijayaramappa merged commit 494b4a1 into master Apr 24, 2023
@ravijayaramappa ravijayaramappa deleted the create-uiGraphQLApi branch April 24, 2023 16:31
scarrawaySF added a commit that referenced this pull request Apr 24, 2023
* feat: add uiGraphQLApi module

* fix format

* Update src/lightning-stubs/uiGraphQLApi/uiGraphQLApi.js

Co-authored-by: Ravi Jayaramappa <ravi.jayaramappa@salesforce.com>

---------

Co-authored-by: Ravi Jayaramappa <ravi.jayaramappa@salesforce.com>
ravijayaramappa added a commit that referenced this pull request Apr 24, 2023
* feat: add uiGraphQLApi module

* fix format

* Update src/lightning-stubs/uiGraphQLApi/uiGraphQLApi.js



---------

Co-authored-by: Ravi Jayaramappa <ravi.jayaramappa@salesforce.com>
mburr-salesforce pushed a commit to mburr-salesforce/sfdx-lwc-jest that referenced this pull request May 30, 2023
* feat: add uiGraphQLApi module

* fix format

* Update src/lightning-stubs/uiGraphQLApi/uiGraphQLApi.js

Co-authored-by: Ravi Jayaramappa <ravi.jayaramappa@salesforce.com>

---------

Co-authored-by: Ravi Jayaramappa <ravi.jayaramappa@salesforce.com>
jye-sf pushed a commit that referenced this pull request May 30, 2023
* feat: add uiGraphQLApi module (#310)

* feat: add uiGraphQLApi module

* fix format

* Update src/lightning-stubs/uiGraphQLApi/uiGraphQLApi.js

Co-authored-by: Ravi Jayaramappa <ravi.jayaramappa@salesforce.com>

---------

Co-authored-by: Ravi Jayaramappa <ravi.jayaramappa@salesforce.com>

* fix: fix initial emit for GraphQL adapters (#315)

---------

Co-authored-by: Stephen Carraway <57263085+scarrawaySF@users.noreply.github.com>
Co-authored-by: Ravi Jayaramappa <ravi.jayaramappa@salesforce.com>
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.

2 participants