[Vuejs]-Vue.Js teting with jest error axios

0👍

You can mock axios in your *spec.js files:

jest.mock('axios', () => ({
    get: () => {},
}));

describe('Test.spec.js', () => {
    ...
});

Leave a comment