This is a basic example of Supertest + Chai + Mocha API test using http://api.postcodes.io/
- Download and install Node v8.1.1.
The test suite also has a bunch of yarn dependencies which will be installed when you follow the installation steps below.
- supertest
- Chai
- Mocha
To install the test suite locally, including the above npm dependencies:
- Clone this repository.
- Run
npm install
from the root directory of this repository.
To run the tests locally against the test portal environment:
- Run
npm test