# @web/test-runner-commands

> Web test runner commands

Latest version **1.0.1** (published 2026-07-15) · MIT license · 0 weekly downloads

## Install

```sh
npm install @web/test-runner-commands
pnpm add @web/test-runner-commands
yarn add @web/test-runner-commands
bun add @web/test-runner-commands
```

## Health

**Score 70/100 (B)** — status: active.

Positive: has types; esm support; no vulnerabilities; has provenance; recently updated; high maintenance score.

Warnings: low downloads.

## Facts

| | |
|---|---|
| Version | 1.0.1 |
| Published | 2026-07-15 |
| First published | 2020-08-06 |
| Weekly downloads | 0 |
| License | MIT |
| TypeScript types | bundled |
| Module format | ESM + CommonJS |
| Node | >=22.0.0 |
| Dependencies | 2 |
| Unpacked size | 120.8 KB |
| Known vulnerabilities | 0 |
| Install scripts | no |
| Provenance | attested (GitHub Actions) |
| Author | modern-web |
| Maintainers | d4kmor, passle, jorenbroekema, bennyp, larsdenbakker, westbrook, modern-web |
| Keywords | web, test, runner, testrunner, commands |

## Links

- npm: https://www.npmjs.com/package/@web/test-runner-commands
- Repository: https://github.com/modernweb-dev/web
- Homepage: https://github.com/modernweb-dev/web/tree/master/packages/test-runner-commands
- Issues: https://github.com/modernweb-dev/web/issues
- npm.io page: https://npm.io/package/@web/test-runner-commands

## Dependencies (2)

- [mkdirp](https://npm.io/package/mkdirp.md) ^1.0.4
- [@web/test-runner-core](https://npm.io/package/@web/test-runner-core.md) ^1.0.0

## Alternatives

- [duck](https://npm.io/package/duck.md) — 4.2M weekly downloads
- [ava](https://npm.io/package/ava.md) — 560.2K weekly downloads
- [storybook-addon-module-mock](https://npm.io/package/storybook-addon-module-mock.md) — 71.7K weekly downloads
- [vest](https://npm.io/package/vest.md) — 50.1K weekly downloads
- [@ethereum-waffle/mock-contract](https://npm.io/package/@ethereum-waffle/mock-contract.md) — 40.0K weekly downloads

## Recent versions

- 1.0.1 (latest) — 2026-07-15
- 0.0.0-canary-20240219104536 (canary) — 2024-02-19
- 1.0.0 — 2026-07-07
- 0.0.0-canary-20240219104126 — 2024-02-19
- 0.0.0-canary-20240212171943 — 2024-02-12
- 0.0.0-canary-20240105101412 — 2024-01-05
- 0.0.0-canary-20240105095248 — 2024-01-05
- 0.0.0-canary-20240105093823 — 2024-01-05
- 0.0.0-canary-20240105092607 — 2024-01-05
- 0.0.0-canary-20240105091725 — 2024-01-05
- 0.0.0-canary-20231122093600 — 2023-11-22
- 0.9.0 — 2023-11-01
- 0.8.3 — 2023-10-31
- 0.8.2 — 2023-10-19
- 0.8.1 — 2023-10-12
- … 46 more at https://npm.io/package/@web/test-runner-commands/versions

## README

# Test Runner Commands

Commands for executing code server-side during your tests in the browser. To control the browser page, access the file system, or execute NodeJS libraries.

Built-in commands can change the viewport, emulate media queries or set the user agent. You can create custom commands to implement your own functionalities.

See [our website](https://modern-web.dev/docs/test-runner/commands/) for full documentation.

---
_Source: https://npm.io/package/@web/test-runner-commands · Machine-readable twin of the npm.io package page. Health data is recomputed on every publish._
