@graphql-tools/jest-transform 1.1.2 → 1.1.3
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/index.js +6 -4
- package/index.mjs +6 -4
- package/package.json +4 -4
package/index.js
CHANGED
|
@@ -12,10 +12,12 @@ class GraphQLTransformer {
|
|
|
12
12
|
const config = ((_a = jestConfig.config.globals) === null || _a === void 0 ? void 0 : _a['graphql']) || {};
|
|
13
13
|
// call directly the webpack loader with a mocked context
|
|
14
14
|
// as the loader leverages `this.cacheable()`
|
|
15
|
-
return
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
15
|
+
return {
|
|
16
|
+
code: loader.call({
|
|
17
|
+
cacheable() { },
|
|
18
|
+
query: config,
|
|
19
|
+
}, input),
|
|
20
|
+
};
|
|
19
21
|
}
|
|
20
22
|
}
|
|
21
23
|
let transformer;
|
package/index.mjs
CHANGED
|
@@ -6,10 +6,12 @@ class GraphQLTransformer {
|
|
|
6
6
|
const config = ((_a = jestConfig.config.globals) === null || _a === void 0 ? void 0 : _a['graphql']) || {};
|
|
7
7
|
// call directly the webpack loader with a mocked context
|
|
8
8
|
// as the loader leverages `this.cacheable()`
|
|
9
|
-
return
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
9
|
+
return {
|
|
10
|
+
code: loader.call({
|
|
11
|
+
cacheable() { },
|
|
12
|
+
query: config,
|
|
13
|
+
}, input),
|
|
14
|
+
};
|
|
13
15
|
}
|
|
14
16
|
}
|
|
15
17
|
let transformer;
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@graphql-tools/jest-transform",
|
|
3
|
-
"version": "1.1.
|
|
3
|
+
"version": "1.1.3",
|
|
4
4
|
"description": "Jest Plugin to load and parse imported GraphQL files",
|
|
5
5
|
"sideEffects": false,
|
|
6
6
|
"peerDependencies": {
|
|
@@ -8,9 +8,9 @@
|
|
|
8
8
|
},
|
|
9
9
|
"dependencies": {
|
|
10
10
|
"@graphql-tools/webpack-loader": "6.6.2",
|
|
11
|
-
"@jest/transform": "^
|
|
12
|
-
"@jest/types": "^
|
|
13
|
-
"tslib": "~2.
|
|
11
|
+
"@jest/transform": "^28.0.0",
|
|
12
|
+
"@jest/types": "^28.0.0",
|
|
13
|
+
"tslib": "~2.4.0"
|
|
14
14
|
},
|
|
15
15
|
"repository": {
|
|
16
16
|
"type": "git",
|