From b55152eb2ce6a6e641f95edf82a676c06e4f9e1b Mon Sep 17 00:00:00 2001 From: infojunkie Date: Thu, 16 Nov 2023 09:22:05 -0800 Subject: [PATCH] Fix axios dependency with jest, simpler solution --- package.json | 2 +- test/axios.cjs | 1 - 2 files changed, 1 insertion(+), 2 deletions(-) delete mode 100644 test/axios.cjs diff --git a/package.json b/package.json index 5caea68e..65e132b0 100644 --- a/package.json +++ b/package.json @@ -75,7 +75,7 @@ "/node_modules/" ], "moduleNameMapper": { - "^axios$": "/test/axios.cjs" + "^axios$": "/node_modules/axios/dist/node/axios.cjs" } } } diff --git a/test/axios.cjs b/test/axios.cjs deleted file mode 100644 index 314de1a0..00000000 --- a/test/axios.cjs +++ /dev/null @@ -1 +0,0 @@ -module.exports = require('../node_modules/axios/dist/node/axios.cjs')