- /src
- db - (Database/models layer)
- redis.ts
- tests - Test cases
- Company.test.ts
- Employee.test.ts
- Company.ts
- Employee.ts
- db - (Database/models layer)
Node 18.14.1
- Clone the repo and
- Install the dependencies to setup your sustem to run the tests
yarn install
- Checkout the respective branch as you follow along the article
-
Test single file
yarn test <regex> Or path to file e.g To test Company file tests yarn test /Company
-
Test entire test suites
yarn test