testdouble.js (AKA td.js) VS config

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

testdouble.js (AKA td.js)

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

config

Type-safe config manager and validator (by pallad-ts)
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
testdouble.js (AKA td.js) config
4 1
1,407 4
0.3% -
6.5 8.4
about 1 month ago 9 days 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.

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.

config

Posts with mentions or reviews of config. We have used some of these posts to build our list of alternatives and similar projects. The last one was on 2023-05-05.
  • TypeScript testing
    2 projects | /r/node | 5 May 2023
    One of my examples: https://github.com/pallad-ts/config/blob/master/packages/ssm/test/SSMProviderTest.ts

What are some alternatives?

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

jest - Delightful JavaScript Testing.

envars - Securely load environment variables (configuration settings) from .env files with support of Google Secret Manager.

tape - tap-producing test harness for node and browsers

config - Configuration module for Nest framework (node.js) 🍓

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

c9h - 🐍 Zero-config config for Node.js

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

chimera - A fantastic configuration library for Deno

Cucumber.js - Cucumber for JavaScript

nyc - the Istanbul command line interface

mocha - ☕️ simple, flexible, fun javascript test framework for node.js & the browser

abstruse - Abstruse is a free and open-source CI/CD platform that tests your models and code.