Skip to content

YunusSarigul/jest-tutorial

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

2 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

This project follows Organizing Tests in Jest ## Installation and usage (For non windows users)

npm i
npm run test:test (for test environment)
npm run test:stage (for stage environment)
npm run test:prod (for prod environment)

Installation and usage (For windows users)

Before starting to test you have to set environment variable like this: $env:NODE_ENV="test"

npm i
npm run wtest:test (for test environment)
npm run wtest:stage (for stage environment)
npm run wtest:prod (for prod environment)

Last checks before pushing your code to the git server

npm run lint

Ensure that there are no errors or warnings.

Important dependencies

vscode-jest extension is stongly recommended.

todo: Junit will be used for Jest reporter.

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published