Use mockFn.mockImplementation(fn). import { funcToMock } from './somewhere'; jest.mock('./somewhere'); beforeEach(() => { ...
確定! 回上一頁