From 7f77e28851d0b325029dc54026268ac8e7402d6c Mon Sep 17 00:00:00 2001 From: Brayan Ceron Date: Thu, 25 Jul 2024 11:14:44 -0500 Subject: [PATCH] fix: tests failed because axios and react-markdown lib errors --- jest.config.js | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/jest.config.js b/jest.config.js index 1df99c3d..d1870a33 100644 --- a/jest.config.js +++ b/jest.config.js @@ -10,4 +10,8 @@ module.exports = createConfig('jest', { 'src/setupTest.js', 'src/i18n', ], + // see https://github.com/axios/axios/issues/5026 + moduleNameMapper: { + "^axios$": "axios/dist/axios.js", + }, });