
Security News
TypeScript is Porting Its Compiler to Go for 10x Faster Builds
TypeScript is porting its compiler to Go, delivering 10x faster builds, lower memory usage, and improved editor performance for a smoother developer experience.
@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 65,376 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.
Security News
TypeScript is porting its compiler to Go, delivering 10x faster builds, lower memory usage, and improved editor performance for a smoother developer experience.
Research
Security News
The Socket Research Team has discovered six new malicious npm packages linked to North Koreaโs Lazarus Group, designed to steal credentials and deploy backdoors.
Security News
Socket CEO Feross Aboukhadijeh discusses the open web, open source security, and how Socket tackles software supply chain attacks on The Pair Program podcast.