Skip to content

Commit

Permalink
test: fixes jest errors after axios upgrade.
Browse files Browse the repository at this point in the history
  • Loading branch information
neomorphic committed Jan 19, 2024
1 parent 95ba182 commit e03968c
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions jest.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,9 @@ module.exports = {
"setupFilesAfterEnv": [
"<rootDir>/src/setupTests.js"
],
"moduleNameMapper": {
'^axios$': require.resolve('axios'),
},
"transform": {
"^.+\\.(js|jsx|ts|tsx)$": "<rootDir>/node_modules/babel-jest",
"^.+\\.css$": "<rootDir>/config/jest/cssTransform.js",
Expand Down

0 comments on commit e03968c

Please sign in to comment.