/react-jest-example

An example of react and jest testing

Primary LanguageJavaScriptMIT LicenseMIT

React Jest Example

An example of React and Jest testing.

This includes some examples of how things can be nested in React. It also includes examples of how to test each module.


To run the sample code

npm install
//and then run
gulp

Gulp runs all jsx transforms using browserify. It also will load the tests.


To run the sample tests

npm test

Also the tests will run with gulp test or through the watch in the default gulp task