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.
I hit a very strange error in one of my codebases (private, unfortunately, else I'd link to it). Here's a pretend example: ```ts .expect((res) => { Buffer.from(undefined); }); ``` In...
## Describe the bug **Node.js version:** 20.19.2 **OS version:** Mac OS 15.4.1 **Description:** An attempt to call `supertest.agent.query()` fails with "TypeError: Invalid URL". This does not happen in Node v20.19.1,...
Hello everyone. Thanks for maintaining this awesome tool. I'm facing an issue while trying to test a simple endpoint headers. I would highly appreciate any help you could bring. ##...
## Describe the bug **Node.js version:** v22.14.0 **supertest version:** 7.1.0 **Description:** in some circumstances, calling `stream.pipe(supertestRequest)` can throw `ERR_STREAM_WRITE_AFTER_END` ## Actual behavior `stream.pipe(supertestRequest)` throws `ERR_STREAM_WRITE_AFTER_END` ## Expected behavior Should pipe...
## Describe the bug **Node.js version:** all versions **OS version:** Linux, osx and windwos **Description:** The `express` project has been unable to update to latest `supertest` for a while now....
## Describe the bug **Node.js version:** 22.11.0 **OS version:** Windows 10 Home **Description:** I am testing an Express API that returns a multipart/form-data response using the form-data library. When invoking...
## Describe the feature SuperTest is behind one major version. It depends on SuperAgent 9.x: https://github.com/ladjs/supertest/blob/master/package.json#L9 However, SuperAgent released 10.x in August 2024: https://github.com/ladjs/superagent/releases/tag/v10.0.0 When I install the latest SuperAgent...
## Bug Report **Node.js version:** v18.20.4 **OS version:** macOS Monterey 12.7.5 ### Description The following error occurs when attempting to make a `POST` request to the `/graphql` endpoint using Supertest:...
I'm unable to have the agent to automatically send my cookies to my requests after a successful login. What I don't undersand is that if try to set the cookies...