React Test

Expressive testing library for React to make sure your code works as expected. Write better code, ship fewer bugs.

npm install react-test
import $ from "react-test"
import Counter from "./Counter.js"

describe("Counter", () => {
  it("increments when clicked", async () => {
    const counter = $(<Counter />);
    expect(counter).toHaveText("0");
    await counter.click();
    expect(counter).toHaveText("1");
  });
});

Familiar

React Test uses jQuery syntax for rendering and navigating components.

Documented

Getting started, API, Jest matchers and examples for your convenience

Jest Matchers

...

Stable and tested

With 250+ tests to ensure everything works. We follow semver strictly

Modern React

Test your hooks and modern features [...]

Intuitive

Try it once and you won't need to read the docs again