Skip to content

Commit

Permalink
fix: use cjs workaround
Browse files Browse the repository at this point in the history
  • Loading branch information
yapyuyou committed Nov 10, 2023
1 parent fe495f7 commit cb182f8
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 @@ -9,4 +9,7 @@ if (process.env.DEBUG) {
module.exports = {
preset: "ts-jest",
testEnvironment: "node",
moduleNameMapper: {
axios: "axios/dist/node/axios.cjs", // Temporary workaround: Force Jest to import the CommonJS Axios build
},
};

0 comments on commit cb182f8

Please sign in to comment.