Skip to content

Commit

Permalink
Ensure json files are excluded in jest config
Browse files Browse the repository at this point in the history
This setting was leading our json files to be misinterpreted by the
transpiler (build would fail trying to read json files as js files)
  • Loading branch information
lidimayra committed Jul 18, 2022
1 parent 24e2f21 commit e4f424e
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion jest.config.v2.js
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ module.exports = {
testURL: "http://localhost",
transform: {
"\\.(gql|graphql)$": "jest-transform-graphql",
".(ts|tsx|js|jsx)": "babel-jest",
"^.+\\.(ts|tsx|js|jsx)$": "babel-jest",
},
},
],
Expand Down

0 comments on commit e4f424e

Please sign in to comment.