This application you can run on NODE JS
- Install Node JS
- Create directory your-jest-automation
mkdir my-test-project
- Install Jest, Chai, Supertest, jest-html-reporters
npm install jest chai supertest jest-html-reporter --save-dev
- Run Test
npm run test spec/folderName/tryJest.test.js
- NPM Install on terminal
- Corret Jest.io after NPM Install has successfully install
- Corret Supertest Library after NPM Install has successfully install
- Create a Test file in the ./spec folder
- Create a function if the request is always reused
- Don't display the credentials in the test file, save them in the configuration
- Don't push your project direct to master(production) but we have stage development --> master
- Don't forget to pull
Name - @Krizaldiw - muhkhalifrizaldiw@gmail.com