Endpoint testing with Jest and Supertest

How to setup Jest and Supertest for endpoint testing.
Source: Codementor