Testing ReboFriends React App with Enzyme and Snapshot. The stateful component testing is also implemented.
- In
Card.test.js
: The Enzyme and Snapshot test are implemented. - In
CardList.test.js
: The Enzyme, Snapshot and Mock test are implemented. - In
CounterButton.test.js
: The Enzyme and Snapshot test are implemented for Stateful component.
To run the project:
- Clone this repo
- Run
npm install
- Run
npm start
To run the test:
- Run
npm test
to begin test - Run
npm npm test -- --coverage
to show the code coverage for the test.