Node.js® is a free, open-source, cross-platform JavaScript runtime environment that lets developers create servers, web apps, command line tools and scripts.
Published By From Node.js News · 1 min read
ReleaseNode.js 25.9.0 (Current)
MockModuleOptions.defaultExport and MockModuleOptions.namedExports have been consolidated into a single option MockModuleOptions.exports to align with user expectations and other test runners.
A default property on MockModuleOptions.exports represents the default export, and own enumerable properties are treated as named exports.
An automated migration is available to update user code: https://github.com/nodejs/userland-migrations/tree/main/recipes/mock-module-exports
Contributed by sangwook in #61727 .
Windows 64-bit Installer: https://nodejs.org/dist/v25.9.0/node-v25.9.0-x64.msi Windows ARM 64-bit Installer: https://nodejs.org/dist/v25.9.0/node-v25.9.0-arm64.msi Windows 64-bit Binary: https://nodejs.org/dist/v25.9.0/win-x64/node.exe Windows ARM 64-bit Binary: https://nodejs.org/dist/v25.9.0/win-arm64/node.exe macOS 64-bit Installer: https://nodejs.org/dist/v25.9.0/node-v25.9.0.pkg macOS Apple Silicon 64-bit Binary: https://nodejs.org/dist/v25.9.0/node-v25.9.0-darwin-arm64.tar.gz macOS Intel 64-bit Binary: https://nodejs.org/dist/v25.9.0/node-v25.9.0-darwin-x64.tar.gz Linux 64-bit Binary: https://nodejs.org/dist/v25.9.0/node-v25.9.0-linux-x64.tar.xz Linux PPC LE 64-bit Binary: https://nodejs.org/dist/v25.9.0/node-v25.9.0-linux-ppc64le.tar.xz Linux s390x 64-bit Binary: https://nodejs.org/dist/v25.9.0/node-v25.9.0-linux-s390x.tar.xz AIX 64-bit Binary: https://nodejs.org/dist/v25.9.0/node-v25.9.0-aix-ppc64.tar.gz ARMv8 64-bit Binary: https://nodejs.org/dist/v25.9.0/node-v25.9.0-linux-arm64.tar.xz Source Code: https://nodejs.org/dist/v25.9.0/node-v25.9.0.tar.gz Other release files: https://nodejs.org/dist/v25.9.0/ Documentation: https://nodejs.org/docs/v25.9.0/api/
This is an excerpt. The full article is published by Node.js News.
Answers to common questions regarding this article's topic, architecture, and practical applications.
MockModuleOptions.defaultExport and MockModuleOptions.namedExports have been consolidated into a single option MockModuleOptions.exports to align with user expectations and other test runners.
How It Works
MockModuleOptions.defaultExport and MockModuleOptions.namedExports have been
consolidated into a single option MockModuleOptions.exports to align with user
expectations and other test runners. A default property on MockModuleOptions.exports represents the default
export, and own enumerable properties are treated as named exports. An automated migration is available to update user code:
https://github.com/nodejs/userland-migrations/tree/main/recip
General
Windows 64-bit Installer: https://nodejs.org/dist/v25.9.0/node-v25.9.0-x64.msi
Windows ARM 64-bit Installer: https://nodejs.org/dist/v25.9.0/node-v25.9.0-arm64.msi
Windows 64-bit Binary: https://nodejs.org/dist/v25.9.0/win-x64/node.exe
Windows ARM 64-bit Binary: https://nodejs.org/dist/v25.9.0/win-arm64/node.exe
macOS 64-bit Installer: https://nodejs.org/dist/v25.9.0/node-v25.9.0.pkg
macOS Apple Silicon 64-bit Binary: https://nodejs.org/dist