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 154 supertest issues
Sort by recently updated
recently updated
newest added

I have a server with a "/hang" endpoint. Requests will hang until the test calls the "release()" function to complete the request. My test initiates two requests to "/hang", then...

We are using supertest to test the API of an app that serves multiple Domains. Depending on the domain you request, you get different results. I want to tell supertest...

> express version: 4.17.1 > supertest version: 4.0.2 TLDR; There seems to be some sort of inconsistency between `express` and `supertest` when handling routes with single quotes. Or I'm missing...

Hi guys Package.json "jest": "24.6.0", "supertest": "^4.0.2" it('should return success on valid request', function(done) { supertest('https://xxxxxx') .get('xxxxxx') .set('Accept', 'application/json') .expect(200) .end(done); }); error msg unable to verify the first certificate...

``` .post('/').field({ uuid: '123' }) .attach('file', './a.md') .set({ 'Authorization': 'a token', }); ``` in the request, only the file show up, the text field uuid not. multer is used for...

I've been search for flakes in my test for weeks and I think the solution is around supertest's usage of ephemeral ports (binding to port 0). Full writeup at at...

I read #484 and my case is a bit different I have 12 passing tests, but the one below keeps throwing `connect ECONNREFUSED 127.0.0.1:80` It's the only one that uses...

![Screenshot (232)](https://user-images.githubusercontent.com/53577056/85954380-95ef2e80-b994-11ea-86a2-767e887b6b3e.png) can anyone help me with this error