supertest icon indicating copy to clipboard operation
supertest copied to clipboard

🕷 Super-agent driven library for testing node.js HTTP servers using a fluent API. Maintained for @forwardemail, @ladjs, @spamscanner, @breejs, @cabinjs, and @lassjs.

Results 149 supertest issues
Sort by recently updated
recently updated
newest added

I found a smart way to test a file download, with pipe and its on 'finish' event . This way the file download is completed successfully (and well completed) ,...

I'm trying to explore the supertest, so I was wondering if I can add in before func some kind of global config. like sending login post request then extract the...

Hi, I have a problem with Express 4 protected routes, here is my route definition and test: **Test:** ``` describe("POST /users/change-password", function() { it("it should has status code 200", function(done)...

My Express App is ```js // index.ts import express from 'express'; const app = express(); app.get('/', (req, res) => { res.status(200); }); app.listen(3000); export default app; ``` and test is...

I have a battery of tests which need to create a new Express app each. As expected without calling listen(PORT) I get an ephemeral port for every request. Is there...

Similiar to https://github.com/visionmedia/supertest/issues/568. One caveat is use _request.agent(app.listen())_ (on search for solutions), other is use describe sections. Other method is requiring the app on each iteration: ```js beaforeEach(() => {...

*Motivation* A lot of the footwork has been done in https://github.com/visionmedia/supertest/pull/494. This continues that work.

I created an express.js server with ts and tried to test it, but got an error. I can't find a solution no matter how I search. **server.ts** ``` import App...

I am making a post request using superagent. It fails with following error. ``` TypeError: _superagent.default.post(...).auth(...).set(...).send(...).then(...).catch is not a function ``` I am working on a corporate machine. But strange...

In my project we use passport for authentication, and doing so allows us to access the account of the user making the request by saying `req.account`. Is there a way...