TWIL June 13th 2025
- enzyme is an alternative to React Testing Library which focuses on the React Tree rather than the DOM
- Jest can run individual tests or suites concurrently, and so can Vitest
- Running DOM-based tests concurrently writes all of them to the same DOM (at least by default)
- This can make it seem like RTL isn't cleaning up the DOM after each test like it should, potentially wasting hours of your time -__-
- eslint-plugin-jest-dom can tell you when you should be using RTL's custom matchers