Template for API tests in JavaScript using Jest and Supertest.
The API used in this project is from FakeStoreAPI.
- Node.js 16+ must be installed.
- npm must be installed.
To install the project dependencies, run the following command:
npm installTo run the tests and generate the test report, run the following command:
npm testThe test report is generated at ./reports/test-api-report.html.
The following plugins are used in the project and are configured in the jest.config.js file:
jest-html-reporter: Used to generate test reports in HTML.