CrossOrigin88 / pre-unit-test

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Usage guide:

  1. Clone project to your local.
  2. Install dependency by running the following command on root directory.
npm install
  1. Execute the tests by running the following command.
npm run test

What i have done:

  1. Installed jest, typescript, ts-jest and @types/jest by running the following command.
npm i -D jest typescript ts-jest @types/jest
  1. Created a default config by running the following command.
npx ts-jest config:init
  1. Created a test script file follow the naming convention in test folder.
{filename}.test.ts
  1. Created a functionality script and test case follow the requirement of pre-interview.
  2. Executed the tests by running the following command.
npm run test
  1. Done!

About


Languages

Language:TypeScript 92.4%Language:JavaScript 7.6%