npm install restify
npm install --save-dev jest
npm install restify-clients
Integration Test requires endpoint to be running.
This could be mocked out and using supertest but leaving simple
npm start
npm test
Browser / Postman - http://localhost:8080/api/echo/hello+world
https://github.com/restify/node-restify https://github.com/restify/clients https://github.com/visionmedia/supertest https://blog.jayway.com/2014/03/28/running-scripts-with-npm/ https://facebook.github.io/jest/docs/en/troubleshooting.html#content https://github.com/Microsoft/vscode-recipes/tree/master/debugging-jest-tests https://facebook.github.io/jest/docs/en/troubleshooting.html