Skip to content

Commit

Permalink
fix(graph): Support fragments on interfaces during codegen (#4925)
Browse files Browse the repository at this point in the history
* fix(graph): update graph codegen dep

* fix: unnecessary eslint rule

* chore: update contributors field

Co-authored-by: sgrove <sgrove@users.noreply.github.com>
Co-authored-by: kodiakhq[bot] <49736102+kodiakhq[bot]@users.noreply.github.com>
  • Loading branch information
3 people authored Aug 11, 2022
1 parent 3dfa6e5 commit 11b9887
Show file tree
Hide file tree
Showing 3 changed files with 13 additions and 8 deletions.
14 changes: 7 additions & 7 deletions npm-shrinkwrap.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -292,7 +292,7 @@
"multiparty": "^4.2.1",
"netlify": "^12.0.0",
"netlify-headers-parser": "^6.0.2",
"netlify-onegraph-internal": "0.8.1",
"netlify-onegraph-internal": "0.8.3",
"netlify-redirect-parser": "^13.0.5",
"netlify-redirector": "^0.2.1",
"node-fetch": "^2.6.0",
Expand Down
5 changes: 5 additions & 0 deletions tests/integration/530.graph-codegen.test.js
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,7 @@ const process = require('process')

const test = require('ava')
const { CodegenHelpers, GraphQL, IncludedCodegen, NetlifyGraph } = require('netlify-onegraph-internal')
const { registerConsole } = require('netlify-onegraph-internal/dist/internalConsole')

const {
generateHandlerSourceByOperationId,
Expand Down Expand Up @@ -259,13 +260,17 @@ const builtInCodegenModules = IncludedCodegen.includedCodegenModules
const queryWithFragmentOperationId = 'e2394c86-260c-4646-88df-7bc7370de666'

builtInCodegenModules.forEach((codegenModule) => {
registerConsole(console)

testGenerateRuntime({
codegenModule,
})
})

const subscriptionWithFragmentOperationId = 'e3d4bb8b-2fb5-9898-b051-db6027224112'
builtInCodegenModules.forEach((codegenModule) => {
registerConsole(console)

codegenModule.generators.forEach((codegen) => {
testGenerateHandlerSource({
codegenModule,
Expand Down

1 comment on commit 11b9887

@github-actions
Copy link

Choose a reason for hiding this comment

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

📊 Benchmark results

Package size: 228 MB

Please sign in to comment.