supertest
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.
So I am having a very random error on the response callbacks my tests look something like this: ```typescript it('POST / -> successful', () => { let username = (Date.now()).toString(32);...
```javascript const restify = require('restify'); const server = restify.createServer(); server.get('/endpoint', (req, res) => { res.send({ a: 'ok' }); }); server.listen(8080, () => { console.log('%s listening at %s', server.name, server.url); });...
I haven't been able to find any detail re running subsets of SuperTest tests. We currently run subsets of (Selenium) UI tests using feature @tags set with ~config.js. Is there...
## Describe the bug **Node.js version:** v20.10.0 **OS version:** MAC 14.2.1 (23C71) The following test returns 200, however when trying to force the test to fail by expecting status to...
## Checklist rework of https://github.com/ladjs/supertest/pull/742 - [x] I have ensured my pull request is not behind the main or master branch of the original repository. - [x] I have rebased...
## Describe the bug **Node.js version:** v22.1.0 **OS version:** MacOS Sonoma 14.4.1(23E224) **Description:** From node 22 version, Array.isArray has been deprecated (https://nodejs.org/api/deprecations.html) ```typescript request(app.getHttpServer()) .post(router) .set('Content-Type', 'multipart/form-data') .field('country', data.country) .field('businessLocation',...
## Checklist - [x] I have ensured my pull request is not behind the main or master branch of the original repository. - [x] I have rebased all commits where...
## Describe the bug **Node.js version:** v20.9.0 **OS version:** Ubuntu 22.04 **Description:** Test cannot progress if there're more than 4~5 `describe()` in a test file. ## Actual behavior I just...
## Describe the bug Warning in console that dependency superagent is deprecated. ## Checklist - [x] I have searched through GitHub issues for similar issues. - [x] I have completely...
## Describe the bug **Node.js version:** 18.18.2 **OS version:** macOS Sonoma 14.4 **Description:** When adding complex object to field() method, the documentation says to use it like this. #759 .field('complex_object',...