From 57303019836fb86f0e58a0a8d225106ac35a0f34 Mon Sep 17 00:00:00 2001 From: William Chong Date: Thu, 23 Nov 2023 02:06:25 +0800 Subject: [PATCH] =?UTF-8?q?=E2=9C=85=20Fix=20failing=20jest=20due=20to=20a?= =?UTF-8?q?xios?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- jest.config.js | 1 + 1 file changed, 1 insertion(+) diff --git a/jest.config.js b/jest.config.js index 0125fb75..bc676532 100644 --- a/jest.config.js +++ b/jest.config.js @@ -3,6 +3,7 @@ module.exports = { '^@/(.*)$': '/$1', '^~/(.*)$': '/$1', '^vue$': 'vue/dist/vue.common.js', + "axios": "axios/dist/node/axios.cjs", // https://stackoverflow.com/a/74297004 }, moduleFileExtensions: [ 'ts',