https://github.com/simonsmith/react-component-unit-test
Unit testing React components with shallow rendering
https://github.com/simonsmith/react-component-unit-test
Last synced: 8 months ago
JSON representation
Unit testing React components with shallow rendering
- Host: GitHub
- URL: https://github.com/simonsmith/react-component-unit-test
- Owner: simonsmith
- Created: 2015-06-13T18:16:27.000Z (almost 11 years ago)
- Default Branch: master
- Last Pushed: 2016-01-27T09:30:34.000Z (over 10 years ago)
- Last Synced: 2024-10-18T08:38:15.631Z (over 1 year ago)
- Language: JavaScript
- Homepage: http://simonsmith.io/unit-testing-react-components-without-a-dom/
- Size: 11.7 KB
- Stars: 59
- Watchers: 5
- Forks: 4
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# Unit testing React components with shallow rendering
A simple example of unit testing two React components in Mocha with [shallow rendering](https://facebook.github.io/react/docs/test-utils.html#shallow-rendering)
```bash
npm install
npm test
```