@envelop/testing 5.0.6 → 5.0.7-alpha-20230220175948-cdba6d9f
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/cjs/index.js +2 -2
- package/esm/index.js +3 -3
- package/package.json +2 -2
package/cjs/index.js
CHANGED
|
@@ -133,12 +133,12 @@ function createTestkit(pluginsOrEnvelop, schema) {
|
|
|
133
133
|
method: 'POST',
|
|
134
134
|
query: '',
|
|
135
135
|
body: {
|
|
136
|
-
query: (0,
|
|
136
|
+
query: (0, core_1.getDocumentString)(document, graphql_1.print),
|
|
137
137
|
variables: variableValues,
|
|
138
138
|
},
|
|
139
139
|
},
|
|
140
140
|
document,
|
|
141
|
-
operation: (0,
|
|
141
|
+
operation: (0, core_1.getDocumentString)(document, graphql_1.print),
|
|
142
142
|
variables: variableValues,
|
|
143
143
|
...initialContext,
|
|
144
144
|
});
|
package/esm/index.js
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import * as GraphQLJS from 'graphql';
|
|
2
2
|
import { getOperationAST, GraphQLError, print } from 'graphql';
|
|
3
|
-
import { useSchema, envelop, isAsyncIterable, useEngine } from '@envelop/core';
|
|
3
|
+
import { useSchema, envelop, isAsyncIterable, useEngine, getDocumentString } from '@envelop/core';
|
|
4
4
|
import { mapSchema as cloneSchema, isDocumentNode } from '@graphql-tools/utils';
|
|
5
5
|
export const useGraphQLJSEngine = () => {
|
|
6
6
|
return useEngine(GraphQLJS);
|
|
@@ -127,12 +127,12 @@ export function createTestkit(pluginsOrEnvelop, schema) {
|
|
|
127
127
|
method: 'POST',
|
|
128
128
|
query: '',
|
|
129
129
|
body: {
|
|
130
|
-
query:
|
|
130
|
+
query: getDocumentString(document, print),
|
|
131
131
|
variables: variableValues,
|
|
132
132
|
},
|
|
133
133
|
},
|
|
134
134
|
document,
|
|
135
|
-
operation:
|
|
135
|
+
operation: getDocumentString(document, print),
|
|
136
136
|
variables: variableValues,
|
|
137
137
|
...initialContext,
|
|
138
138
|
});
|
package/package.json
CHANGED
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@envelop/testing",
|
|
3
|
-
"version": "5.0.
|
|
3
|
+
"version": "5.0.7-alpha-20230220175948-cdba6d9f",
|
|
4
4
|
"sideEffects": false,
|
|
5
5
|
"peerDependencies": {
|
|
6
|
-
"@envelop/core": "
|
|
6
|
+
"@envelop/core": "3.0.7-alpha-20230220175948-cdba6d9f",
|
|
7
7
|
"@envelop/types": "^3.0.2",
|
|
8
8
|
"graphql": "^14.0.0 || ^15.0.0 || ^16.0.0"
|
|
9
9
|
},
|