Skip to content

Latest commit

 

History

History
19 lines (14 loc) · 608 Bytes

README.md

File metadata and controls

19 lines (14 loc) · 608 Bytes

React Testing Example

Testing ReboFriends React App with Enzyme and Snapshot. The stateful component testing is also implemented.

Introduction

  • 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.

Usage

To run the project:

  1. Clone this repo
  2. Run npm install
  3. 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.