0👍
You can mock axios
in your *spec.js
files:
jest.mock('axios', () => ({
get: () => {},
}));
describe('Test.spec.js', () => {
...
});
Source:stackexchange.com
0👍
You can mock axios
in your *spec.js
files:
jest.mock('axios', () => ({
get: () => {},
}));
describe('Test.spec.js', () => {
...
});