skip to content

Mocks and Spies

0 questions

jest.fn and jest.spyOn, module mocking with jest.mock, manual mocks, and the difference between mockClear, mockReset, and mockRestore. Interviewers ask because leftover mock state between tests is a classic source of order-dependent failures.

questions

no questions here yet

this part of the tree is still being written

>
0 questions in this topic or below it