Adapt to jest v29

This commit is contained in:
Fernando Fernández 2022-11-10 20:59:20 +01:00
parent d73515e3fa
commit e420259328
2 changed files with 2 additions and 2 deletions

View File

@ -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';

View File

@ -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';