Navigation Menu

Skip to content

orinamio/jest-tutorial

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

4 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Installation

First, create a folder and then create package.json file using:

cd folder-name
npm init 

Then, Install the Jest dependency. For NPM:

npm install --save-dev jest 

For Yarn:

yarn add --dev jest

To Run Test:

npm test

Result:

To view built-in code coverage report, Install Jest globally. Run:

npm install -g jest

Then:

jest --coverage

Result:

About

A Jest Tutorial for Scotch.io

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published