enzymejs/enzyme ? reverse-engineered prompt

Reverse engineered prompt

Build me a JavaScript testing helper for React that makes it really easy to check what a component renders, look through its children, and simulate things like clicks and form changes. I want the main ways to use it to be shallow rendering, full DOM rendering, and static rendering, with a simple, friendly API that feels easy to read in tests.

It should work with common test runners and assertion libraries, and support a way to plug in an adapter for different React versions. Include clear examples for setting up the adapter, writing tests, finding elements by tag, class, or component, checking props and text, and simulating events. If there are tricky compatibility details, look up the current docs online if you need to.

Please also make sure there are solid tests and that the docs explain the basic workflows in a beginner friendly way.

Are you gonna build this?

make sure you review the code using coderabbit

Try freeSponsored — opens CodeRabbit in a new tab