Code AnalysisIntermediate 45s
Mock function
What does jest.fn() create?
Starter code
const mockFn = jest.fn().mockReturnValue(42); console.log(mockFn());
Think you can answer under pressure?
Get matched and answer live questions in 3-minute 1v1 battles. Elo ranking, badge tiers and bragging rights on the line.