Skip to content

Example project demonstrating how to test React components with Jest/Enzyme

License

Notifications You must be signed in to change notification settings

ebramanti/react-jest-enzyme-examples

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

4 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Jest/Enzyme/Snapshot Examples

This project was bootstrapped with Create React App.

Quick Start

yarn install
yarn start

The above commands will install dependencies and start the app. To run tests, run yarn test on a separate command line.

Testing libraries

This instance of create-react-app has been enhanced with the following testing libraries:

Library Description
Jest Automated testing
Enzyme Unit test React components in isolation via shallow or with children via mount
enzyme-adapter-react-16 Configures enzyme to work with React 16
enzyme-to-json Convert Enzyme wrappers to a format compatible with Jest snapshot testing.

About

Example project demonstrating how to test React components with Jest/Enzyme

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published