
Research
Node.js Fixes AsyncLocalStorage Crash Bug That Could Take Down Production Servers
Node.js patched a crash bug where AsyncLocalStorage could cause stack overflows to bypass error handlers and terminate production servers.
wpt-runner
Advanced tools
This package allows you to run tests written in the style of web-platform-tests, but from within Node.js. It does this by running your tests inside a jsdom instance. You can optionally run some setup code beforehand, for example to set up a polyfill that you want to test.
This is useful to a fairly narrow class of consumer: those who both
So for example, it might be useful if you're developing a polyfill or reference implementation for a new browser feature, but want to do so in JavaScript, and get the fast no-recompile feedback loop of Node.js.
$ node bin/wpt-runner.js
Runs web platform tests in Node.js using jsdom
wpt-runner <tests-path> [--root-url=<url/of/tests/>] [--setup=<setup-module.js>]
Options:
--root-url, -u the relative URL path for the tests, e.g. dom/nodes/ [string]
--setup, -s the filename of a setup function module [string]
--help Show help [boolean]
--version Show version number [boolean]
This will run all .html files found by recursively crawling the specified directory, optionally mounted to the specified root URL and using the specified setup function. The program's exit code will be the number of failing files encountered (0 for success).
The setup is fairly similar. Here is a usage example:
const wptRunner = require("wpt-runner");
wptRunner(testsPath, { rootURL, setup, filter, reporter })
.then(failures => process.exit(failures))
.catch(e => {
console.error(e.stack);
process.exit(1);
});
The options are:
rootURL: the URL at which to mount the tests (so that they resolve any relative URLs correctly).setup: a setup function to run in the jsdom environment before running the tests.filter: a function that takes the arguments testPath and testURL and returns true or false (or a promise for one of those) to indicate whether the test should run. Defaults to no filteringreporter: an object which can be used to customize the output reports, instead of the default of reporting to the console. (Check out lib/console-reporter.js for an example of the object structure.)The returned promise fulfills with the number of failing files encountered (0 for success), or rejects if there was some I/O error retrieving the files.
FAQs
Runs web platform tests in Node.js using jsdom
The npm package wpt-runner receives a total of 1,350 weekly downloads. As such, wpt-runner popularity was classified as popular.
We found that wpt-runner demonstrated a healthy version release cadence and project activity because the last version was released less than a year ago. It has 1 open source maintainer collaborating on the project.
Did you know?

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Research
Node.js patched a crash bug where AsyncLocalStorage could cause stack overflows to bypass error handlers and terminate production servers.

Research
/Security News
A malicious Chrome extension steals newly created MEXC API keys, exfiltrates them to Telegram, and enables full account takeover with trading and withdrawal rights.

Security News
CVE disclosures hit a record 48,185 in 2025, driven largely by vulnerabilities in third-party WordPress plugins.