📅  最后修改于: 2022-03-11 14:59:39.087000             🧑  作者: Mango
test("mockName", () => {
const mockFn = jest.fn().mockName("mockedFunction");
mockFn(); // comment me
expect(mockFn).toHaveBeenCalled();
});