Skip to content

Commit

Permalink
✅ Fix failing jest test due to axios
Browse files Browse the repository at this point in the history
  • Loading branch information
williamchong committed Nov 22, 2023
1 parent da7d597 commit 7d39cf6
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 @@ -3,4 +3,7 @@ module.exports = {
preset: 'ts-jest',
testEnvironment: 'node',
testPathIgnorePatterns: ['/node_modules/', 'dist'],
transform: {
axios: 'axios/dist/node/axios.cjs', // https://stackoverflow.com/a/74297004
},
};

0 comments on commit 7d39cf6

Please sign in to comment.