mirror of
https://github.com/jellyfin/jellyfin-sdk-typescript.git
synced 2024-11-23 14:09:43 +00:00
Adapt to jest v29
This commit is contained in:
parent
d73515e3fa
commit
e420259328
@ -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';
|
||||
|
||||
|
@ -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';
|
||||
|
Loading…
Reference in New Issue
Block a user