Skip to content

build(deps-dev): Bump testdouble from 3.23.0 to 4.0.0 - #1665

Open
dependabot[bot] wants to merge 1 commit into
mainfrom
dependabot/npm_and_yarn/testdouble-4.0.0
Open

dependabot[bot] wants to merge 1 commit into
mainfrom
dependabot/npm_and_yarn/testdouble-4.0.0

Conversation

@dependabot

@dependabot dependabot Bot commented on behalf of github Oct 18, 2026

Copy link
Copy Markdown
Contributor

Bumps testdouble from 3.23.0 to 4.0.0.

Changelog

Sourced from testdouble's changelog.

4.0.0

  • Breaking change: drop support for Node.js versions before 22, all of which have reached end-of-life
  • Fix getters being imitated as undefined by td.replace(path), td.object, td.constructor and td.imitate. This made every export of an SWC-compiled module, and re-exports compiled by Babel or tsc, impossible to stub #526 #550
  • Fix td.replace(object, 'property') throwing Cannot set property ... which has only a getter on a getter with no setter. It now replaces the getter, and td.reset() restores it. A getter that can't be redefined, as SWC defines exports, gets an error suggesting td.replace('path/to/module') #526 #550
  • Fix webpack 5 browser builds failing with Can't resolve 'module', broken since 3.20.1. In a browser, td.replaceEsm() now throws an "only supported under Node.js" error, and td.listReplacedModules() returns [] #531
  • Add an ES module build for browsers, dist/testdouble.mjs, so import * as td from 'testdouble' works in tools that load native ES modules. Tools resolving with the browser export condition get it: webpack, Vite and esbuild do when targeting the browser, and @​web/test-runner does with nodeResolve: { exportConditions: ['browser', 'development'] }. testdouble/dist/testdouble.js can be imported by path again #494
  • Fix a CommonJS module loaded with import() having empty exports after the test file called td.replace() (Node 20.6–24.17 and 25.x), by updating quibble to 0.13.0 quibble#111
  • Behavior change: imitating an object now calls its getters, so their side effects run. Getters that throw, getters on prototypes (as td.constructor reads them), and getters nested more than 3 deep still give undefined #526
  • Behavior change: an import of testdouble resolved with the browser condition now gets the browser build, which can't replace modules. That includes Jest's jsdom environment with --experimental-vm-modules and Node run with --conditions=browser. require('testdouble') is unaffected #494
  • Behavior change: importing a missing ES module that isn't replaced, such as one that only existed as a replacement before td.reset(), now fails with ERR_MODULE_NOT_FOUND instead of ENOENT. Update tests that check for ENOENT quibble#100
Commits
  • 7c6f0e8 4.0.0
  • d98e832 Bump Node engines in examples
  • ec96a86 Add changelog entry for 4.0.0
  • 6b46717 Bump minimum Node version to 22
  • 2e1e259 Increase timeout for browser start
  • 04063f1 Merge pull request #550 from testdouble/fix-526-getters
  • 92268f5 Replace a barrel file's re-export in the Babel example
  • 769ea69 Replace getters with td.replace(object, property)
  • a344b26 Imitate the values of getters instead of undefined
  • ef3dc36 Add an ES module build for browsers
  • Additional commits viewable in compare view

Dependabot compatibility score

Dependabot will resolve any conflicts with this PR as long as you don't alter it yourself. You can also trigger a rebase manually by commenting @dependabot rebase.


Dependabot commands and options

You can trigger Dependabot actions by commenting on this PR:

  • @dependabot rebase will rebase this PR
  • @dependabot recreate will recreate this PR, overwriting any edits that have been made to it
  • @dependabot show <dependency name> ignore conditions will show all of the ignore conditions of the specified dependency
  • @dependabot ignore this major version will close this PR and stop Dependabot creating any more for this major version (unless you reopen the PR or upgrade to it yourself)
  • @dependabot ignore this minor version will close this PR and stop Dependabot creating any more for this minor version (unless you reopen the PR or upgrade to it yourself)
  • @dependabot ignore this dependency will close this PR and stop Dependabot creating any more for this dependency (unless you reopen the PR or upgrade to it yourself)

Bumps [testdouble](https://github.com/testdouble/testdouble.js) from 3.23.0 to 4.0.0.
- [Changelog](https://github.com/testdouble/testdouble.js/blob/main/CHANGELOG.md)
- [Commits](testdouble/testdouble.js@v3.23.0...v4.0.0)

---
updated-dependencies:
- dependency-name: testdouble
  dependency-version: 4.0.0
  dependency-type: direct:development
  update-type: version-update:semver-major
...

Signed-off-by: dependabot[bot] <support@github.com>
@dependabot dependabot Bot added dependencies Automated dependency update javascript Pull requests that update Javascript code labels Oct 18, 2026

This branch has not been deployed

No deployments
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

dependencies Automated dependency update javascript Pull requests that update Javascript code

Projects

None yet

Development

Successfully merging this pull request may close these issues.

0 participants