Top "Supertest" questions

SuperTest is a module that provides high-level abstraction for testing HTTP in node.

How to authenticate Supertest requests with Passport?

I'm using Passport.js for authentication (local strategy) and testing with Mocha and Supertest. How can I create a session …

node.js mocha supertest passport.js
Trying to use supertest to check the body of response - getting an error

I am trying to use supertest for some testing. Here is the code snippet that I am trying to test: …

node.js express supertest
How to chain http calls with superagent/supertest?

I am testing an express API with supertest. I couldn't get multiple requests in a test case to work with …

node.js express supertest superagent
How to send query string parameters using supertest?

I'm using supertest to send get query string parameters, how can I do that? I tried var imsServer = supertest.agent("…

supertest
Testing requests that redirect with mocha/supertest in node

I can't seem to get the following integration test to pass in an express project using mocha, supertest, and should (…

node.js express mocha supertest
With Supertest, can I create an alternative request with some headers set by default?

I am using Supertest with Mocha to test an API developed with Node JS. And I want to do a …

javascript node.js express mocha supertest
res.body is empty in this test that uses supertest and Node.js

I am testing a Node.js API with supertest, and I cannot explain why the res.body object superset returns …

node.js mocha.js supertest
TypeError: Cannot read property 'address' of undefined supertest

I need some help to resolve my problem with testing on nodejs codes. I'm using mocha and supertest. I'm confused …

node.js mocha.js supertest
Node.js / Express / Mocha / Supertest Rest API - Empty Request Body

I've looked everywhere I can to find a solution to this. The only thing I've found is an unanswered post. …

node.js rest express mocha.js supertest
Supertest, test secure REST API

I am writing an integration test for a REST API protected by a jwt. One API operation POST /user/token …

node.js jwt supertest express-jwt