Skip to content

Commit

Permalink
Add axios package to moduleNameMapper in Jest config
Browse files Browse the repository at this point in the history
  • Loading branch information
julianguyen committed Dec 26, 2023
1 parent 8ffcd56 commit 8f3f506
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion client/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -117,7 +117,8 @@
"jest": {
"moduleNameMapper": {
"\\.scss$": "identity-obj-proxy",
"^.+\\.svg$": "<rootDir>/jest/svgTransform.js"
"^.+\\.svg$": "<rootDir>/jest/svgTransform.js",
"axios": "axios/dist/node/axios.cjs"
},
"setupFiles": [
"./app/libs/testHelper.js",
Expand Down

0 comments on commit 8f3f506

Please sign in to comment.