Skip to content

Latest commit

 

History

2 Commits

Folders and files

NameName
Last commit message
Last commit date
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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.

About

Testing React App with Enzyme and Snapshot. Testing the stateful component

Topics

Resources

Stars

0 stars

Watchers

1 watching

Forks

Releases

Packages

Contributors

Languages