workers-sdk/packages/vitest-plugin
ANT Bot 38b46238c5
Version Packages (#15250)
Co-authored-by: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com>
History 2026-08-20 18:19:50 +01:00
..
scripts [vitest-plugin] Rename package for v1 (#15074) 2026-08-19 17:37:08 +01:00
src [vitest-plugin] Rename package for v1 (#15074) 2026-08-19 17:37:08 +01:00
test [vitest-plugin] Rename package for v1 (#15074) 2026-08-19 17:37:08 +01:00
types [vitest-plugin] Rename package for v1 (#15074) 2026-08-19 17:37:08 +01:00
AGENTS.md [vitest-plugin] Rename package for v1 (#15074) 2026-08-19 17:37:08 +01:00
CHANGELOG.md Version Packages (#15250) 2026-08-20 18:19:50 +01:00
CONTRIBUTING.md [vitest-plugin] Rename package for v1 (#15074) 2026-08-19 17:37:08 +01:00
package.json Version Packages (#15250) 2026-08-20 18:19:50 +01:00
README.md [vitest-plugin] Rename package for v1 (#15074) 2026-08-19 17:37:08 +01:00
tsconfig.json [vitest-plugin] Rename package for v1 (#15074) 2026-08-19 17:37:08 +01:00
tsdown.config.ts [vitest-plugin] Rename package for v1 (#15074) 2026-08-19 17:37:08 +01:00
turbo.json [vitest-plugin] Rename package for v1 (#15074) 2026-08-19 17:37:08 +01:00
vitest-plugin.svg [vitest-plugin] Rename package for v1 (#15074) 2026-08-19 17:37:08 +01:00
vitest.config.mts [vitest-plugin] Rename package for v1 (#15074) 2026-08-19 17:37:08 +01:00

@cloudflare/vitest-plugin

The Workers Vitest integration allows you to write Vitest tests that run inside the Workers runtime. Refer to the documentation and examples for more information.

  • ✅ Supports both unit tests and integration tests
  • 📚 Provides direct access to Workers runtime APIs and bindings
  • 📦 Implements isolated per-test storage
  • 🔥 Runs tests fully-locally using Miniflare
  • ⚡️ Leverages Vitest's hot-module reloading for near instant reruns
  • ↩️ Provides a declarative interface for mocking outbound requests
  • 🧩 Supports projects with multiple Workers