-
Notifications
You must be signed in to change notification settings - Fork 1k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Improved the should update schema with live directive test
- Loading branch information
1 parent
bb2b74c
commit fc0cf00
Showing
2 changed files
with
15 additions
and
150 deletions.
There are no files selected for viewing
135 changes: 1 addition & 134 deletions
135
packages/graphql-server/src/plugins/__tests__/__snapshots__/useRedwoodRealtime.test.ts.snap
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,136 +1,3 @@ | ||
// Jest Snapshot v1, https://goo.gl/fbAQLP | ||
|
||
exports[`useRedwoodRealtime should update schema with live directive 1`] = ` | ||
[MockFunction] { | ||
"calls": [ | ||
[ | ||
{ | ||
"replaceSchema": [Function], | ||
"schema": GraphQLSchema { | ||
"__validationErrors": [], | ||
"_directives": [ | ||
"@live", | ||
"@include", | ||
"@skip", | ||
"@deprecated", | ||
"@specifiedBy", | ||
], | ||
"_implementationsMap": {}, | ||
"_mutationType": undefined, | ||
"_queryType": "Query", | ||
"_subTypeMap": {}, | ||
"_subscriptionType": undefined, | ||
"_typeMap": { | ||
"Boolean": "Boolean", | ||
"ID": "ID", | ||
"Int": "Int", | ||
"Query": "Query", | ||
"String": "String", | ||
"User": "User", | ||
"__Directive": "__Directive", | ||
"__DirectiveLocation": "__DirectiveLocation", | ||
"__EnumValue": "__EnumValue", | ||
"__Field": "__Field", | ||
"__InputValue": "__InputValue", | ||
"__Schema": "__Schema", | ||
"__Type": "__Type", | ||
"__TypeKind": "__TypeKind", | ||
}, | ||
"astNode": { | ||
"description": undefined, | ||
"directives": [], | ||
"kind": "SchemaDefinition", | ||
"operationTypes": [ | ||
{ | ||
"kind": "OperationTypeDefinition", | ||
"operation": "query", | ||
"type": { | ||
"kind": "NamedType", | ||
"name": { | ||
"kind": "Name", | ||
"value": "Query", | ||
}, | ||
}, | ||
}, | ||
], | ||
}, | ||
"description": undefined, | ||
"extensionASTNodes": [], | ||
"extensions": { | ||
Symbol(useRedwoodRealtime.wasLiveQueryAdded): true, | ||
}, | ||
}, | ||
}, | ||
], | ||
[ | ||
{ | ||
"replaceSchema": [Function], | ||
"schema": GraphQLSchema { | ||
"__validationErrors": [], | ||
"_directives": [ | ||
"@live", | ||
"@include", | ||
"@skip", | ||
"@deprecated", | ||
"@specifiedBy", | ||
], | ||
"_implementationsMap": {}, | ||
"_mutationType": undefined, | ||
"_queryType": "Query", | ||
"_subTypeMap": {}, | ||
"_subscriptionType": undefined, | ||
"_typeMap": { | ||
"Boolean": "Boolean", | ||
"ID": "ID", | ||
"Int": "Int", | ||
"Query": "Query", | ||
"String": "String", | ||
"User": "User", | ||
"__Directive": "__Directive", | ||
"__DirectiveLocation": "__DirectiveLocation", | ||
"__EnumValue": "__EnumValue", | ||
"__Field": "__Field", | ||
"__InputValue": "__InputValue", | ||
"__Schema": "__Schema", | ||
"__Type": "__Type", | ||
"__TypeKind": "__TypeKind", | ||
}, | ||
"astNode": { | ||
"description": undefined, | ||
"directives": [], | ||
"kind": "SchemaDefinition", | ||
"operationTypes": [ | ||
{ | ||
"kind": "OperationTypeDefinition", | ||
"operation": "query", | ||
"type": { | ||
"kind": "NamedType", | ||
"name": { | ||
"kind": "Name", | ||
"value": "Query", | ||
}, | ||
}, | ||
}, | ||
], | ||
}, | ||
"description": undefined, | ||
"extensionASTNodes": [], | ||
"extensions": { | ||
Symbol(useRedwoodRealtime.wasLiveQueryAdded): true, | ||
}, | ||
}, | ||
}, | ||
], | ||
], | ||
"results": [ | ||
{ | ||
"type": "return", | ||
"value": undefined, | ||
}, | ||
{ | ||
"type": "return", | ||
"value": undefined, | ||
}, | ||
], | ||
} | ||
`; | ||
exports[`useRedwoodRealtime should update schema with live directive 1`] = `"@live"`; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters