Skip to content

Latest commit

 

History

History
23 lines (13 loc) · 789 Bytes

README.md

File metadata and controls

23 lines (13 loc) · 789 Bytes

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