React Wiring Library

React Wiring Library

  • Docs
  • API
  • GitHub
Project Logo

React Wiring Library

A declarative framework for react-testing-library that makes testing complicated components easy.

Get Started

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

Test complicated multi-level components without creating mountains of wiring code that's hard to understand and annoying to maintain.

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.

The problem (picture of a maze)
The solution (picture of a light bulb)

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.

React Wiring Library
Docs
Getting StartedBasic TutorialsAPI
More
GitHubStar
Copyright © 2019 Clay Branch