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

Hi Team, Today for superagent the latest version is 8.0.9 with no vulnerabilities.the supertest version with 6.3.3 is not updated with these dependency superagent 8.0.9. Can you help me here...

## Describe the bug **Node.js version:** v18.17.1 **OS version:** macOS 13.5.2 (22G91) **Description:** I am trying to test against a Koa API that sets a HTTP cookie with a secure...

bug

Is there merit in repeating `request(app)`? Do I have to keep repeating it on every test? Can I just perform this step in one initialization file and forget about it?...

supertest.get('test').set('Cache-Control', 'xablau' ) comes as headers: { 'cache-control: xablau' } headers are always converted to lowercase how can i keep it exactly as it was set

Not a bug. Just wanted to document this here in case anyone else comes across the same issue. When running my tests I was getting the below output: ``` Jest...

## Describe the bug **Node.js version:** v18.8.0 **OS version:** **Description:** SuperTest doesn't seem to pass the body as is. In particular, if it is invalid, it sends an empty JSON...

bug

## This error occurs when running `ng test` (Angular/Karma/Jasmine) **Node.js version:** v18.13.0se **OS version:** Ubuntu 22.04.2 LTS **Description:** Module not found: Error: Can't resolve 'http' in '[...]/node_modules/supertest/lib' ## Actual behavior...

bug

## Describe the bug Due to the use of superagent 8.0.5, which uses cookiejar version 2.1.3, a vulnerability is present in the latest package, https://github.com/advisories/GHSA-h452-7996-h45h. A simple fix would be...

bug

## Describe the bug **Node.js version:** v18.14.1 **OS version:** macOS Ventura 13.1 **Description:** A request to a non-responsive route never times-out ## Actual behavior The function passed to request(app).timeout(ms).end(fn) is...

bug

Im trying TDD with Next.js, supertest and jest. I dont know If Im doing good. Repo: https://github.com/LksR-dev/crud-nextjs-ts The process.env.BASE_URL_LOCAL is the localhost, Every time I run the test it makes...

enhancement