Testing · Senior · Question 41 of 75

Why is mocking useState or other React hooks a bad idea?

Explanation

Mock boundaries (network, time, browser APIs), not the framework.

Further reading

Problem with a question

Testing · Senior · question 41

Test yourself

Take the Testing · Senior quiz: questions and options are shuffled, and you get a review of your mistakes at the end.

Take this quiz