TSC VS testdouble.js (AKA td.js)

Compare TSC vs testdouble.js (AKA td.js) and see what are their differences.

TSC

The Node.js Technical Steering Committee (by nodejs)

testdouble.js (AKA td.js)

A minimal test double library for TDD with JavaScript (by testdouble)
SurveyJS - Open-Source JSON Form Builder to Create Dynamic Forms Right in Your App
With SurveyJS form UI libraries, you can build and style forms in a fully-integrated drag & drop form builder, render them in your JS app, and store form submission data in any backend, inc. PHP, ASP.NET Core, and Node.js.
surveyjs.io
featured
InfluxDB - Power Real-Time Data Analytics at Scale
Get real-time insights from all types of time series data with InfluxDB. Ingest, query, and analyze billions of data points in real-time with unbounded cardinality.
www.influxdata.com
featured
TSC testdouble.js (AKA td.js)
5 4
557 1,407
1.4% 0.2%
7.9 6.5
5 days ago about 2 months ago
JavaScript JavaScript
- 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.

TSC

Posts with mentions or reviews of TSC. We have used some of these posts to build our list of alternatives and similar projects. The last one was on 2022-06-11.
  • Bringing Forward the End-of-Life Date for Node.js 16
    2 projects | news.ycombinator.com | 11 Jun 2022
    The dates were known in advance - however, the Node team expected OpenSSL 3 to be out before the release of Node 16, but it didn't happen - so they had to release with OpenSSL 1.1.1. Between the lines, I think that there was some minor hope of maybe upgrading, but obviously it was to difficult.

    https://github.com/nodejs/TSC/issues/1222

  • In response to the moderation team resignation (Rust)
    2 projects | news.ycombinator.com | 25 Nov 2021
    >After the Node incident, it's highly likely Ashley Williams is involved again due to her propensity for racism and sexism.

    I didn't know what this was referring to so I looked it up.

    Here's a Reddit thread which seems to be the genesis of the complaint (an archive link because the actual post was removed):

    https://archive.md/VEtHu

    Link to original Reddit thread:

    https://old.reddit.com/r/node/comments/6whs2e/multiple_coc_v...

    NodeJS GitHub issue thread

    https://github.com/nodejs/TSC/issues/324

    HN threads:

    https://news.ycombinator.com/item?id=16085545

    https://news.ycombinator.com/item?id=15115989

    https://news.ycombinator.com/item?id=16073017

  • Rust mod team resignation
    5 projects | /r/programming | 22 Nov 2021
  • What you need to know about ES modules in Node.js
    5 projects | dev.to | 18 Jan 2021
    If Node.js 12.x and 14.x releases have full support for ES modules, what gives? I was wondering the same, so I asked Matteo Collina on Twitter (he's a member of the Node.js TSC). Myles Borins (also a member of the TSC) chimed in on the thread to explain the rationale behind ES modules being marked as 'Experimental' in the 12.x and 14.x release lines:
  • Running Homebridge Server On M1 Mac
    2 projects | /r/homebridge | 21 Dec 2020

testdouble.js (AKA td.js)

Posts with mentions or reviews of testdouble.js (AKA td.js). We have used some of these posts to build our list of alternatives and similar projects. The last one was on 2023-06-04.
  • Cannot figure out how to mock ES6 modules for a Node AWS Lambda
    2 projects | /r/node | 4 Jun 2023
    ESM modules need custom loaders for mocking. Testsouble (https://www.npmjs.com/package/testdouble) was one of the first frameworks to support it AFAIK and a great type-safe option.
  • TypeScript testing
    2 projects | /r/node | 5 May 2023
    Alternative is using testdouble with `td.object()` https://www.npmjs.com/package/testdouble
  • Testing Without Mocks
    1 project | news.ycombinator.com | 21 Feb 2023
    I’m not sure I manage to follow the author correctly, but to me it seems that by “mock” they strictly refer to external mocking libraries, in the sense of JS’s `testdouble` [1] or Java’s `Mockito` [2]. The fake object as returned by `LoginClient.createNull().getUserInfo(...)` appears to be a “Nullable” for them.

    [1] https://www.npmjs.com/package/testdouble

  • What you need to know about ES modules in Node.js
    5 projects | dev.to | 18 Jan 2021
    If you need an alternative for mocking, testdouble.js has full ES module support thanks to some excellent work by Gil Tayar.

What are some alternatives?

When comparing TSC and testdouble.js (AKA td.js) you can also consider the following projects:

Sinon.JS - Test spies, stubs and mocks for JavaScript.

jest - Delightful JavaScript Testing.

ah-theyre-here-esm-nodejs - Code accompanying my talk "Aaaaaaaaaaaaaah, They’re Here! ES Modules in Node.JS"

tape - tap-producing test harness for node and browsers

awesome-npm - Awesome npm resources and tips

loadtest - Runs a load test on the selected URL. Fast and easy to use. Can be integrated in your own workflow using the API.

team - Rust teams structure

Cucumber.js - Cucumber for JavaScript

wasm-pack - 📦✨ your favorite rust -> wasm workflow tool!

build - Better build and test infra for Node.

nyc - the Istanbul command line interface