supertest VS ts-node

Compare supertest vs ts-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)
Our great sponsors
  • SurveyJS - Open-Source JSON Form Builder to Create Dynamic Forms Right in Your App
  • WorkOS - The modern identity platform for B2B SaaS
  • InfluxDB - Power Real-Time Data Analytics at Scale
supertest ts-node
20 20
13,510 12,492
0.6% 0.9%
4.4 5.5
30 days ago about 1 month ago
JavaScript TypeScript
MIT License MIT License
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.

ts-node

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

What are some alternatives?

When comparing supertest and ts-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.

swc-node - Faster ts-node without typecheck

esbuild - An extremely fast bundler for the web

esbuild-runner - ⚡️ Super-fast on-the-fly transpilation of modern JS, TypeScript and JSX using esbuild

swc - Rust-based platform for the Web

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

sucrase - Super-fast alternative to Babel for when you can target modern JS runtimes

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

vike - 🔨 Like Next.js / Nuxt but as do-one-thing-do-it-well Vite plugin.

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

TypeScript-Call-Graph - CLI to generate an interactive graph of functions and calls from your TypeScript files