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 170af60
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
@@ -1,5 +1,8 @@
/** @type {import('ts-jest/dist/types').InitialOptionsTsJest} */
module.exports = {
moduleNameMapper: {
axios: 'axios/dist/node/axios.cjs', // https://stackoverflow.com/a/74297004
},
preset: 'ts-jest',
testEnvironment: 'node',
testPathIgnorePatterns: ['/node_modules/', 'dist'],
Expand Down

0 comments on commit 170af60

Please sign in to comment.