Skip to content

Latest commit

 

History

History

examples

A set of examples demonstrating the usage of isolate-react, using jest as the test runner.

You can clone these examples and run them yourself:

git clone git@github.com:davidmfoley/isolate-react.git

cd isolate-react/examples

yarn

Run the examples once:

yarn examples

Watch the examples and run them on change:

yarn examples:watch

Examples

Demonstrates testing a simple component.

Demonstrates testing a react component with two approaches:

  1. "Shallow" testing, using isolateComponent
  2. "Deep" testing using isolateComponentTree

Demonstrates testing a hook that uses useEffect and useState.

Demonstrates testing a hook with slightly more complex state.