Test a Render Prop!
enzyme is a hugely popular library for testing React components. While contracting for Commercetools, me and my teammates found it a bit inconvenient to test render props with enzyme - and we had plenty of them after their epic rise in popularity. My coworker Tobi and I built an extension for enzyme which removes the overhead of testing render props called
I wrote the "Test a Render Prop!" article as a follow-up to the hugely popular "Use a render prop!" article. It is supposed to be the missing testing section of the original.
The developers behind
enzyme have since reached out to us and we helped integrate the
renderProp test function of
enzyme-extensions into the next
enzyme release, which I'm very excited about!