testdouble.js (AKA td.js)

A minimal test double library for TDD with JavaScript (by testdouble)

testdouble.js (AKA td.js) Alternatives

Similar projects and alternatives to testdouble.js (AKA td.js)

NOTE: The number of mentions on this list indicates mentions on common posts plus user suggested alternatives. Hence, a higher number means a better testdouble.js (AKA td.js) alternative or higher similarity.

testdouble.js (AKA td.js) reviews and mentions

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.
  • A note from our sponsor - SurveyJS
    surveyjs.io | 25 Apr 2024
    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. Learn more →

Stats

Basic testdouble.js (AKA td.js) repo stats
4
1,407
6.5
about 1 month ago

Sponsored
The modern identity platform for B2B SaaS
The APIs are flexible and easy-to-use, supporting authentication, user identity, and complex enterprise features like SSO and SCIM provisioning.
workos.com