Skip to content

Latest commit

History

History
9 lines (8 loc) 路 372 Bytes

2021-04-17.md

File metadata and controls

9 lines (8 loc) 路 372 Bytes
publish_date
2021-04-17
  • Reading more blogs about Jest.
    • 3 ways to mock
    • jest.fn(), used to mock a function
    • jest.mock(), used to mock entire modules
    • jest.spyOn(), used to either watch a function and exposes extra meta data about how, when, times etc a function/method was called