| [ Web Proxy ] |
| Viewing: https://developers.cloudflare.com/workers/testing/vitest-integration/ | [Back] [Original] |
For most users, Cloudflare recommends using the Workers Vitest integration for unit testing Workers and Pages Functions projects. Vitest is a popular JavaScript testing framework featuring a very fast watch mode, Jest compatibility, and out-of-the-box support for TypeScript. In this integration, Cloudflare provides a custom pool that allows your Vitest tests to run inside the Workers runtime.
The Workers Vitest integration:
Write your first test
| Web Proxy Viewer | New URL | Original Page |