@graphql-tools/jest-transform
Advanced tools
Comparing version
@@ -8,4 +8,3 @@ "use strict"; | ||
process(input, _filePath, jestConfig) { | ||
var _a; | ||
const config = ((_a = jestConfig.config.globals) === null || _a === void 0 ? void 0 : _a['graphql']) || {}; | ||
const config = jestConfig.config.globals?.['graphql'] || {}; | ||
// call directly the webpack loader with a mocked context | ||
@@ -12,0 +11,0 @@ // as the loader leverages `this.cacheable()` |
import loader from '@graphql-tools/webpack-loader'; | ||
class GraphQLTransformer { | ||
process(input, _filePath, jestConfig) { | ||
var _a; | ||
const config = ((_a = jestConfig.config.globals) === null || _a === void 0 ? void 0 : _a['graphql']) || {}; | ||
const config = jestConfig.config.globals?.['graphql'] || {}; | ||
// call directly the webpack loader with a mocked context | ||
@@ -7,0 +6,0 @@ // as the loader leverages `this.cacheable()` |
{ | ||
"name": "@graphql-tools/jest-transform", | ||
"version": "2.0.0-rc-20230519104353-b09f3180", | ||
"version": "2.0.0-rc-20230519104627-f6fea064", | ||
"description": "Jest Plugin to load and parse imported GraphQL files", | ||
@@ -10,3 +10,3 @@ "sideEffects": false, | ||
"dependencies": { | ||
"@graphql-tools/webpack-loader": "7.0.0-rc-20230519104353-b09f3180", | ||
"@graphql-tools/webpack-loader": "7.0.0-rc-20230519104627-f6fea064", | ||
"@jest/transform": "^29.0.0", | ||
@@ -13,0 +13,0 @@ "@jest/types": "^29.0.0", |
5013
-2.45%69
-2.82%+ Added
+ Added
+ Added
Updated