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

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