
Research
2025 Report: Destructive Malware in Open Source Packages
Destructive malware is rising across open source registries, using delays and kill switches to wipe code, break builds, and disrupt CI/CD.
@web/test-runner
Advanced tools
Test runner for web applications.
šĀ Ā Headless browsers with Puppeteer, Playwright, or Selenium.
š§Ā Ā Reports logs, 404s, and errors from the browser.
šĀ Ā Debug opens a real browser window with devtools.
š¦Ā Ā Mock es modules using Import Maps.
š§Ā Ā Exposes browser properties like viewport size and dark mode.
ā±Ā Ā Runs tests in parallel and isolation.
šĀ Ā Interactive watch mode.
šĀ Ā Fast development by rerunning only changed tests.
šĀ Ā Powered by esbuild and rollup plugins
See our website for full documentation.
Install the web test runner:
npm i --save-dev @web/test-runner
Do a single test run:
web-test-runner test/**/*.test.js --node-resolve
wtr test/**/*.test.js --node-resolve
Run in watch mode, reloading on file changes:
web-test-runner test/**/*.test.js --node-resolve --watch
wtr test/**/*.test.js --node-resolve --watch
Run with code coverage profiling (this is slower):
web-test-runner test/**/*.test.js --node-resolve --coverage
wtr test/**/*.test.js --node-resolve --coverage
Transform JS to a compatible syntax based on user agent:
web-test-runner test/**/*.test.js --node-resolve --esbuild-target auto
wtr test/**/*.test.js --node-resolve --esbuild-target auto
Check out this step by step guide to get started.
Check out the example projects for a fully integrated setup.
See our website for full documentation.
FAQs
Test runner for web applications
The npm package @web/test-runner receives a total of 52,535 weekly downloads. As such, @web/test-runner popularity was classified as popular.
We found that @web/test-runner demonstrated a healthy version release cadence and project activity because the last version was released less than a year ago.Ā It has 7 open source maintainers 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
Destructive malware is rising across open source registries, using delays and kill switches to wipe code, break builds, and disrupt CI/CD.

Security News
Socket CTO Ahmad Nassri shares practical AI coding techniques, tools, and team workflows, plus what still feels noisy and why shipping remains human-led.

Research
/Security News
A five-month operation turned 27 npm packages into durable hosting for browser-run lures that mimic document-sharing portals and Microsoft sign-in, targeting 25 organizations across manufacturing, industrial automation, plastics, and healthcare for credential theft.