Usage guide:
- Clone project to your local.
- Install dependency by running the following command on root directory.
npm install
- Execute the tests by running the following command.
npm run test
What i have done:
- Installed jest, typescript, ts-jest and @types/jest by running the following command.
npm i -D jest typescript ts-jest @types/jest
- Created a default config by running the following command.
npx ts-jest config:init
- Created a test script file follow the naming convention in test folder.
{filename}.test.ts
- Created a functionality script and test case follow the requirement of pre-interview.
- Executed the tests by running the following command.
npm run test
- Done!