From 68faaaf3d018c7065772f4220137b8a662e6e2e4 Mon Sep 17 00:00:00 2001 From: Shelley Vohr Date: Sun, 31 Dec 2023 11:42:29 +0100 Subject: [PATCH] chore: fix axios resolution --- jest.config.js | 3 +++ 1 file changed, 3 insertions(+) diff --git a/jest.config.js b/jest.config.js index 9ee81b0..8922ee5 100644 --- a/jest.config.js +++ b/jest.config.js @@ -6,4 +6,7 @@ module.exports = { testRegex: "(/__tests__/.*|\\.(test|spec))\\.[tj]sx?$", moduleFileExtensions: ["ts", "tsx", "js", "jsx", "json", "node"], testEnvironment: "node", + moduleNameMapper: { + axios: "axios/dist/node/axios.cjs", + }, };