Testing · Middle · Question 68 of 75

Why is deep nesting of describe blocks with shared let variables problematic?

Explanation

Kent C. Dodds: prefer flat tests with explicit setup functions (“Avoid Nesting when you're Testing”).

Further reading

Problem with a question

Testing · Middle · question 68

Test yourself

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

Take this quiz