From 215221f64f793496ba86351fc5f3f69288ed86c1 Mon Sep 17 00:00:00 2001 From: Alex Gleason Date: Fri, 15 Sep 2023 19:51:40 -0500 Subject: [PATCH] jest.requireActual --> vi.importActual --- app/soapbox/api/__mocks__/index.ts | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/app/soapbox/api/__mocks__/index.ts b/app/soapbox/api/__mocks__/index.ts index d0931a397..d0664bbe6 100644 --- a/app/soapbox/api/__mocks__/index.ts +++ b/app/soapbox/api/__mocks__/index.ts @@ -1,10 +1,10 @@ -import { jest } from '@jest/globals'; import MockAdapter from 'axios-mock-adapter'; import LinkHeader from 'http-link-header'; +import { vi } from 'vitest'; import type { AxiosInstance, AxiosResponse } from 'axios'; -const api = jest.requireActual('../index') as Record; +const api = await vi.importActual('../index') as Record; let mocks: Array = []; export const __stub = (func: (mock: MockAdapter) => void) => mocks.push(func);