Skip to content
RED SAG Skills
hardStudy question · answer published in React interview questions, so no pointsreacttesting

Mocking APIs in component tests

Tests mock fetch with jest.fn() returning fixed objects, but they miss bugs in headers and error handling. What is a more realistic approach?

Choose one answer

Discussion 0

Join free to post in the discussion.

Related questions