Skip to content

Commit aa7f2da

Browse files
committed
Explicitly target node_modules/graphql-request js files to transform
1 parent 5f0535f commit aa7f2da

1 file changed

Lines changed: 4 additions & 1 deletion

File tree

jest.project.js

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,10 @@ module.exports = ({ dirname, projectMode = true }) => {
1919

2020
return {
2121
...(CI || !projectMode ? {} : { displayName: pkg.name.replace('@graphql-codegen/', '') }),
22-
transform: { '^.+\\.[tj]sx?$': 'babel-jest' },
22+
transform: {
23+
'^.+\\.tsx?$': 'babel-jest',
24+
'/node_modules/graphql-request/.+\\.js$': 'babel-jest',
25+
},
2326
transformIgnorePatterns: ['/node_modules/(?!(graphql-request)/)'],
2427
testEnvironment: 'node',
2528
rootDir: dirname,

0 commit comments

Comments
 (0)