From 736a62781f7248d6192f1babf76bbb7d648d8169 Mon Sep 17 00:00:00 2001 From: dlohvinov Date: Thu, 3 Oct 2024 00:40:55 +0300 Subject: [PATCH] fix: tests --- tests/config/config.js | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/tests/config/config.js b/tests/config/config.js index 76095547..18258068 100644 --- a/tests/config/config.js +++ b/tests/config/config.js @@ -7,7 +7,10 @@ config.global.plugins = [WebitelUi, i18n]; window.scrollTo = () => {}; -vi.doMock('../../src/app/api/instance.js', axiosMock()); +const axios = axiosMock(); +vi.doMock('@webitel/ui-sdk/src/api/axios/generateInstance.js', () => ({ + default: () => axios().default, +})); beforeAll(async () => { const store = (await import('../../src/app/store/index.js')).default;