Unit testing React components with shallow rendering
A simple example of unit testing two React components in Mocha with shallow rendering
npm install
npm test
Unit testing React components with shallow rendering
Use Git or checkout with SVN using the web URL.
Work fast with our official CLI. Learn more about the CLI.
Please sign in to use Codespaces.
If nothing happens, download GitHub Desktop and try again.
If nothing happens, download GitHub Desktop and try again.
If nothing happens, download Xcode and try again.
Your codespace will open once ready.
There was a problem preparing your codespace, please try again.
A simple example of unit testing two React components in Mocha with shallow rendering
npm install
npm test
Unit testing React components with shallow rendering