Tests: Clear API mocks between each test
This commit is contained in:
@ -4,6 +4,7 @@ const api = jest.requireActual('../api').default;
|
||||
let mocks = [];
|
||||
|
||||
export const __stub = func => mocks.push(func);
|
||||
export const __clear = () => mocks = [];
|
||||
|
||||
const setupMock = axios => {
|
||||
const mock = new MockAdapter(axios);
|
||||
|
||||
Reference in New Issue
Block a user