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 26ad816 commit babde1c
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 @@ -13,6 +13,10 @@ module.exports = createConfig('jest', {
'src/data/services/lms/fakeData', // don't unit test mock data
'src/test', // don't unit test integration test utils
],
// see https://github.com/axios/axios/issues/5026
moduleNameMapper: {
'^axios$': 'axios/dist/axios.js',
},
testTimeout: 120000,
testEnvironment: 'jsdom',
});

0 comments on commit babde1c

Please sign in to comment.