supertest VS node

Compare supertest vs node and see what are their differences.

supertest

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

node

Node.js JavaScript runtime ✨🐢🚀✨ (by nodejs)
Our great sponsors
  • SurveyJS - Open-Source JSON Form Builder to Create Dynamic Forms Right in Your App
  • InfluxDB - Power Real-Time Data Analytics at Scale
  • WorkOS - The modern identity platform for B2B SaaS
supertest node
20 904
13,510 102,694
0.6% 1.3%
4.4 9.9
30 days ago 6 days ago
JavaScript JavaScript
MIT License GNU General Public License v3.0 or later
The number of mentions indicates the total number of mentions that we've tracked plus the number of user suggested alternatives.
Stars - the number of stars that a project has on GitHub. Growth - month over month growth in stars.
Activity is a relative number indicating how actively a project is being developed. Recent commits have higher weight than older ones.
For example, an activity of 9.0 indicates that a project is amongst the top 10% of the most actively developed projects that we are tracking.

supertest

Posts with mentions or reviews of supertest. We have used some of these posts to build our list of alternatives and similar projects. The last one was on 2023-03-07.
  • Express API Testing
    14 projects | /r/node | 7 Mar 2023
    Here in the issue you can see how people struggle with setting a header, it's objectively harder to make handy functions on top of supertest to perform authorized requests.
    14 projects | /r/node | 7 Mar 2023
    Supertest is quite popular and easy to use test tool, you can do integration and E2E test as well, you just need to pass it the server instance or a string to make a request and assert over the response.
  • How can I test an Express application through a terminal?
    3 projects | /r/learnjavascript | 16 Dec 2022
    If the latter, there are a bunch of different options for writing automated tests. One popular way is using Jest to run your tests. If you're trying to test the backend end-to-end flow, you could use Supertest to make requests and assert on the responses.
  • 🚀 NodeJS + Ts.ED + TypeScript + Clean Architecture Template
    14 projects | dev.to | 5 Oct 2022
    Unit, Integration and E2E tests using Jest and Supertest
  • Hi im having trouble building my api tests
    2 projects | /r/node | 19 Jul 2022
    Yes, but when every function handler is separate from the router, then you can use node-mocks-http to test each handler, to test the router is simpler to use supertest to write integration tests, for E2E tests I personally recommend [pactum](pactumjs.github.io/)
  • Booking Typescript API with Express, typeORM and Postgres
    7 projects | dev.to | 31 Mar 2022
    Simple booking api attempt with Typescript, Express, TypeORM and Postgres. Testing with Jest & Supertest.
  • Patterns and Anti-patterns in Node.js
    12 projects | dev.to | 15 Mar 2022
    In a Node.js application, writing API tests is a good start. They provide more coverage than unit testing. You can use frameworks like Supertest, Jest, or any other library that provides a high-level abstraction for testing APIs.
  • Testing Node.js/Express app + MongoDB with jest and supertest
    5 projects | dev.to | 15 Nov 2021
    supertest npm package that helps test HTTP
  • How to test APIs??
    8 projects | /r/commandline | 10 Nov 2021
    If you want to write integration tests - https://jestjs.io - https://github.com/visionmedia/supertest
  • Using uvu for TypeScript API Testing
    3 projects | dev.to | 6 Oct 2021
    SuperTest is helpful for testing the GraphQL endpoints. We can use it to send HTTP requests and make assertions on the responses. If you are working on a Fastify project, as we will see, you use inbuilt Fastify functionality and don't need to add supertest.

node

Posts with mentions or reviews of node. We have used some of these posts to build our list of alternatives and similar projects. The last one was on 2024-03-21.

What are some alternatives?

When comparing supertest and node you can also consider the following projects:

pactum - REST API Testing Tool for all levels in a Test Pyramid

superagent - Ajax for Node.js and browsers (JS HTTP client). Maintained for @forwardemail, @ladjs, @spamscanner, @breejs, @cabinjs, and @lassjs.

Svelte - Cybernetically enhanced web apps

Cypress - Fast, easy and reliable testing for anything that runs in a browser.

widevine-l3-decryptor - A Chrome extension that demonstrates bypassing Widevine L3 DRM

frisby - Frisby is a REST API testing framework built on Jest that makes testing API endpoints easy, fast, and fun.

sharp-libvips - Packaging scripts to prebuild libvips and its dependencies - you're probably looking for https://github.com/lovell/sharp

source-map-resolve - [DEPRECATED] Resolve the source map and/or sources for a generated file.

nodejs.dev - A redesign of Nodejs.org built using Gatsby.js with React.js, TypeScript, and Remark.

serverless-offline - Emulate AWS λ and API Gateway locally when developing your Serverless project

request - 🏊🏾 Simplified HTTP request client.

hashlips_art_engine - HashLips Art Engine is a tool used to create multiple different instances of artworks based on provided layers.