@cloudflare/vitest-pool-workers
TypeScript icon, indicating that this package has built-in type declarations

0.2.12 • Public • Published

@cloudflare/vitest-pool-workers

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

Package Sidebar

Install

npm i @cloudflare/vitest-pool-workers

Weekly Downloads

31,726

Version

0.2.12

License

MIT

Unpacked Size

341 kB

Total Files

56

Last publish

Collaborators

  • lerwincf
  • lbarthonet
  • cf-media-manager
  • jacobbednarz
  • celso
  • cf-radar
  • dash_service_account
  • g4brym
  • snigdha34
  • wrangler-publisher
  • marksteyn
  • chiminator
  • sgoodhew_cf
  • terinjokes
  • third774
  • jsteinberger
  • jasnell
  • asapzacy
  • pcostanzo
  • gregbrimble
  • geelen
  • rexscaria
  • dcruz_cf
  • xuranwang
  • jculvey
  • sejoker
  • vasturiano
  • cf-ci-write
  • segments-write
  • thibmeu
  • xortive
  • gurjinder
  • cf-ci2
  • lvalenta
  • worenga