Skip to content

How to migrate unit tests from Mocha and Chai to Jest

Notifications You must be signed in to change notification settings

springload/mocha-chai-to-jest

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

20 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Migrating unit tests from Mocha and Chai to Jest

Build Status Coverage Status dependencies Status devDependencies Status

A how-to, with code samples, to leverage Jest in your React unit tests.

# Setup the project
npm install
# Run Mocha+chai tests
npm run test:mocha
# Run Jest tests
npm run test:jest
# Bonus point: test coverage with Jest
npm run test:jest:coverage

Releases

No releases published

Packages

No packages published