/supertest

Example of tests of an API using Supertest

Primary LanguageJavaScript

example-supertest

Example of tests (functional and contract) of an API using Supertest. The API used for testing is JSONPlaceholder.

Getting started

Configuration

git clone https://github.com/marciovrl/supertest.git

Clone the project

npm install

Install the dependencies

Commands

npm run feature-test

Run functional tests

npm run contract-test

Run contract tests

npm run test

Run all tests