Cloudflare Docs
Workers
Edit this page on GitHub
Set theme to dark (⇧+D)

Vitest integration

Information about the Workers Vitest integration - the recommended package for writing unit and integration tests for Workers.

  • Get started: Install and set up the Workers Vitest integration.
  • Recipes: Examples that demonstrate how to write unit tests and integration tests for Workers projects with the Workers Vitest integration.
  • Configuration: Vitest configuration specific to the Workers integration.
  • Test APIs: Runtime helpers for writing tests, exported from the cloudflare:test module.
  • Isolation and concurrency: Review how the Workers Vitest integration runs your tests, how it isolates tests from each other, and how it imports modules.
  • Known issues: Explore the known issues associated with the Workers Vitest integration.