Snapshots that work
Snapshots that work
Assert an entire component with a single call. You be sure being sure that tests only fail when functionality is broken, and know exactly what went wrong.
Super-charged querying
Super-charged querying
Test complicated multi-level components without creating mountains of wiring code that's hard to understand and annoying to maintain.
Principled Customization
Principled Customization
Customize the core API of react-testing-library
without compromising it's guiding principles.
Readable, intuitive tests
While react-testing-library
does a great job of letting you test code the way you use it, getting there requires a lot of so called "wiring" code.
While querying for elements, triggering events and then asserting expected values is easy to do, it ends up requiring a lot of repeated code that muddies up your tests. react-wiring-library
lets you offload all of that wiring to the framework, leaving behind a single call for each step you want to test.
Custom Serializers
No more massive snapshots that output unreadable diffs and cause unnecessary test failures. Instead, use our simple API for converting DOM elements into easy to read strings that capture the relevant details of your components and nothing more.