Pre-Requisite:
- Must have installed NodeJS in you machine.
- Install yarn globally - npm install -g yarn
Steps to start with Project:
- npm install - it will install all dependencies you have in your package.json
Here I am using reqres.in API.
Install Prettier Plugin from Extentions at VSCode and create .prettierrc file and put below code in it. { "tabWidth": 2, "singleQuote": true, "semi": true, "useTabs": true }
Run Tests:
- yarn test - to run all tests
- yarn test test/users.js - to run specif file
- yarn test test/users.js --grep 'Get Users' - To run a specific test case
- yarn test/<folder_name> - to run specific folder