npm install --save-dev supertest
npm install --save-dev ts-jest
npm i @types/[email protected] (make sure to match with @types/jest dependency)
npm install --save @types/jest
npm install --save @types/supertest
Package.json file should look like below after all the above commands are run
 
 npx jest {filename}
npm install jest-junit --save-dev
npx jest {filename}
npm install jest-junit --save-dev==> Include the reporters section in jest.config.js as per below
 
Sample junit xml report will look like below
 
Adding a Jest HTML report
npm install jest-html-reporters --save-dev
==> Include the jest-html-reporters in jest.config.js as per below
 
 Sample jest HTML report will look like below
