Hacker News new | ask | show | jobs
by jfdk 3622 days ago
What I should have said is "minimize tools when it makes sense" rather than "when possible." There are some tools that are more trouble than they're worth (for example, I feel this strongly about Jest).

Enzyme isn't necessarily one of those, like I said I haven't used it, but I also haven't found a need to. Some abstractions over TestUtils' event simulation would certainly be valuable.

What I am trying to present here are patterns of different testing scenarios in a format that should be useful regardless of the testing tools you may be using.