Use jest.mock to auto-mock a module: // src/test.js import lodash from 'lodash'; jest.mock('lodash'); it('mocks lodash', () => { expect(jest ...
確定! 回上一頁