Use when writing unit tests with Jest. Covers naming conventions (testObj, target, mock, actual, expected), jest.fn/spyOn/mock mastery, clear/reset/restore differences, module mocking, fake timers, and AAA pattern. Triggers: Jest, unit test, mock, spy, stub, jest.fn, jest.spyOn, jest.mock.