Skip to content

Commit

Permalink
fix: tests failed because axios lib errors
Browse files Browse the repository at this point in the history
  • Loading branch information
bra-i-am committed Jul 25, 2024
1 parent b2cb1ee commit f5a09c5
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions jest.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -10,4 +10,8 @@ module.exports = createConfig('jest', {
'src/postcss.config.js',
'testUtils', // don't unit test jest mocking tools
],
// see https://github.com/axios/axios/issues/5026
moduleNameMapper: {
'^axios$': 'axios/dist/axios.js',
},
});

0 comments on commit f5a09c5

Please sign in to comment.