diff --git a/src/__tests__/api.test.ts b/src/__tests__/api.test.ts index 6cc7224f..371e030a 100644 --- a/src/__tests__/api.test.ts +++ b/src/__tests__/api.test.ts @@ -15,7 +15,7 @@ jest.mock('axios', () => ({ ...jest.requireActual('axios'), request: jest.fn() })); -const mockAxios = jest.mocked(axios, true); +const mockAxios = jest.mocked(axios, { shallow: false }); const TEST_ACCESS_TOKEN = 'TEST-ACCESS-TOKEN'; diff --git a/src/discovery/__tests__/recommended-server-discovery.test.ts b/src/discovery/__tests__/recommended-server-discovery.test.ts index 9d3b875f..1bae5119 100644 --- a/src/discovery/__tests__/recommended-server-discovery.test.ts +++ b/src/discovery/__tests__/recommended-server-discovery.test.ts @@ -12,7 +12,7 @@ import { TEST_CLIENT, TEST_DEVICE } from '../../__helpers__/common'; import { itIf } from '../../__helpers__/it-if'; jest.mock('axios'); -const mockAxios = jest.mocked(axios, true); +const mockAxios = jest.mocked(axios, { shallow: false }); const ADDRESS = 'https://example.com'; const PRODUCT_NAME = 'Jellyfin Server';