Skip to content

Commit 145061a

Browse files
committed
add an empty string handler for jest gql
1 parent e4339ae commit 145061a

File tree

2 files changed

+2
-0
lines changed

2 files changed

+2
-0
lines changed
Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
module.exports = ''

package.json

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -210,6 +210,7 @@
210210
"i18n/(.*)\\.yml$": "<rootDir>__tests__/test-utils/mock-data/empty-yml.js",
211211
"modeSettings.yml$": "<rootDir>__tests__/test-utils/mock-data/empty-yml.js",
212212
"i18n-loader": "<rootDir>__tests__/test-utils/mock-data/i18n-loader.js",
213+
"\\.graphql$": "<rootDir>__tests__/test-utils/mock-data/empty-string.js",
213214
"\\.(jpg|ico|jpeg|png|gif|eot|otf|webp|svg|ttf|woff|woff2|mp4|webm|wav|mp3|m4a|aac|oga)$": "<rootDir>__tests__/test-utils/mock-data/fileMock.js"
214215
},
215216
"transform": {

0 commit comments

Comments
 (0)