Skip to content

ChillYao/React-Testing-Example

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

2 Commits
 
 
 
 
 
 
 
 
 
 
 
 

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

Watchers

Forks

Releases

No releases published

Packages

No packages published