express-test
This package allows you to test express routes without opening http requests or going through app middleware. It makes it easy to build a request for your route and verify the response.
example
// routes/hello.js module { app;};
// test/routes/hello-test.js // create servervar express = should = ;; var app = express; // require the route you're going to testapp; // test the bodyapp; // set sinon expectations on the response mockapp;