From 1a6f5bacb4f15ade1722a807bb336645ae3abbc9 Mon Sep 17 00:00:00 2001 From: CeciliaLiu8 Date: Mon, 4 Mar 2024 11:57:22 -0600 Subject: [PATCH] fix test error after axios update --- jest.config.js | 1 + 1 file changed, 1 insertion(+) diff --git a/jest.config.js b/jest.config.js index b47aa4a..d9eb177 100644 --- a/jest.config.js +++ b/jest.config.js @@ -7,6 +7,7 @@ module.exports = { moduleNameMapper: { "\\.(css)$": "identity-obj-proxy", "single-spa-react/parcel": "single-spa-react/lib/cjs/parcel.cjs", + "^axios$": "axios/dist/node/axios.cjs", }, setupFilesAfterEnv: ["@testing-library/jest-dom"], };