supertest
🕷 Super-agent driven library for testing node.js HTTP servers using a fluent API. Maintained for @forwardemail, @ladj
About this project
supertest HTTP assertions made easy via superagent. Maintained for Forward Email and Lad. About The motivation with this module is to provide a high-level abstraction for testing HTTP, while still allowing you to drop down to the lower-level API provided by superagent. Getting Started Install supertest as an npm module and save it to your package.json file as a development dependency: Once installed it can now be referenced by simply calling Example You may pass an http.Server, or a Function to request() - if the server is not already listening for connections then it is bound to an ephemeral port for you so there is no need to keep track of ports. supertest…
Technologies
Project health
GitHub
Reviews
Built by
Maintain forwardemail/supertest? Claiming verifies admin access through your GitHub account and gives you control of this listing.