diff --git a/jest.config.js b/jest.config.js index 689f97f..79621d8 100644 --- a/jest.config.js +++ b/jest.config.js @@ -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'],