Skip to content

Purpose of this project is to act as reference for all kind of unit test setups written in jest test framework

Notifications You must be signed in to change notification settings

saikumar-everest/jest-all-kind-unit-test-setups

Folders and files

NameName
Last commit message
Last commit date

Latest commit

fd20e40 ยท Jan 4, 2021

History

25 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

jest-all-kind-unit-test-setups

๐Ÿ“– Purpose of this project is to act as reference ๐Ÿ““ for all kind of unit test setups written in Jest test framework

We encourage AAA(Arrange - Act - Assert) format for structuring any unit(actually any!) test.

Note: These setups are just some of the possible to write. I agree that, for the same test, one can write with many different setups also.

List of different test setups for scenarios

Visit each folder and you should find a brief description about the test scenario and test setup.

โš™๏ธ How to run tests

  1. Install dependencies yarn

  2. Run tests yarn test

  3. Run a single test yarn test anonymous-instance-mock/caller.spec.ts

About

Purpose of this project is to act as reference for all kind of unit test setups written in jest test framework

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published