14 Matching Annotations
  1. Dec 2022
  2. Oct 2022
  3. May 2021
  4. Feb 2021
  5. May 2020
  6. Mar 2020
  7. Nov 2019
    1. So finally I'm coming out with it and explaining why I never use shallow rendering and why I think nobody else should either. Here's my main assertion:With shallow rendering, I can refactor my component's implementation and my tests break. With shallow rendering, I can break my application and my tests say everything's still working.This is highly concerning to me because not only does it make testing frustrating, but it also lulls you into a false sense of security. The reason I write tests is to be confident that my application works and there are far better ways to do that than shallow rendering.