Avoid Nesting when you're Testing
Why using hooks like beforeEach as a mechanism for code reuse leads to unmaintainable tests and how to avoid it.
Sources
- T2Avoid Nesting when you're TestingMartin Fowler / Overreacted / Kent C. Dodds / Josh Comeau
Why using hooks like beforeEach as a mechanism for code reuse leads to unmaintainable tests and how to avoid it.