René's URL Explorer Experiment


Title: Testing | Void

Description: Run tests with Vitest and Vite+, mock Cloudflare bindings, and test email with the built-in harnesses.

Generator: VitePress v2.0.0-alpha.20

direct link

Domain: void.cloud

Links:

Skip to contenthttps://void.cloud/guide/testing#VPContent
https://void.cloud/
Guidehttps://void.cloud/guide/
Platformhttps://void.cloud/guide/self-hosted-platform
Project Structurehttps://void.cloud/reference/structure
Resource Inferencehttps://void.cloud/reference/resource-inference
Confighttps://void.cloud/reference/config
CLIhttps://void.cloud/reference/cli
APIhttps://void.cloud/reference/api
Overviewhttps://void.cloud/integrations/frameworks/overview
TanStack Starthttps://void.cloud/integrations/frameworks/tanstack-start
React Routerhttps://void.cloud/integrations/frameworks/react-router
Astrohttps://void.cloud/integrations/frameworks/astro
SvelteKithttps://void.cloud/integrations/frameworks/sveltekit
Nuxthttps://void.cloud/integrations/frameworks/nuxt
Analoghttps://void.cloud/integrations/frameworks/analog
Coding Agentshttps://void.cloud/integrations/agents
Honohttps://void.cloud/integrations/hono
Cloudflarehttps://void.cloud/integrations/cloudflare
Node.js / Bun / Denohttps://void.cloud/integrations/nodejs-bun-deno
https://discord.gg/cC6TEVFKSx
https://x.com/voidzerodev
https://bsky.app/profile/voidzero.dev
https://github.com/voidzero-dev/void
https://discord.gg/cC6TEVFKSx
https://x.com/voidzerodev
https://bsky.app/profile/voidzero.dev
https://github.com/voidzero-dev/void
Introductionhttps://void.cloud/guide/
Quickstarthttps://void.cloud/guide/quickstart
Supported App Typeshttps://void.cloud/guide/app-types
Server Routinghttps://void.cloud/guide/server-routing
Overviewhttps://void.cloud/guide/pages-routing/overview
Layouts & Shared Datahttps://void.cloud/guide/pages-routing/layouts
Loaders & Propshttps://void.cloud/guide/pages-routing/loaders
Actions & Formshttps://void.cloud/guide/pages-routing/actions-and-forms
Not Found & Errorshttps://void.cloud/guide/pages-routing/errors
View Transitionshttps://void.cloud/guide/pages-routing/view-transitions
Head Managementhttps://void.cloud/guide/pages-routing/head
Islandshttps://void.cloud/guide/pages-routing/islands
Markdownhttps://void.cloud/guide/pages-routing/markdown
Static Assets Cachinghttps://void.cloud/guide/edge/static-assets
Revalidation (ISR)https://void.cloud/guide/edge/revalidation
Edge Prerenderinghttps://void.cloud/guide/edge/prerendering
Custom Headershttps://void.cloud/guide/edge/headers
Redirectshttps://void.cloud/guide/edge/redirects
Rewriteshttps://void.cloud/guide/edge/rewrites
Custom SSRhttps://void.cloud/guide/ssr
SSGhttps://void.cloud/guide/ssg
Type Safetyhttps://void.cloud/guide/type-safety
Overviewhttps://void.cloud/guide/database
D1 (SQLite)https://void.cloud/guide/database/d1
PostgreSQLhttps://void.cloud/guide/database/postgresql
MySQLhttps://void.cloud/guide/database/mysql
Typed Fetchhttps://void.cloud/guide/typed-fetch
Key-Value Storagehttps://void.cloud/guide/kv
Object Storagehttps://void.cloud/guide/storage
Durable Statehttps://void.cloud/guide/durable-state
Environment Variableshttps://void.cloud/guide/env-vars
Authenticationhttps://void.cloud/guide/auth
AIhttps://void.cloud/guide/ai
Emailhttps://void.cloud/guide/email
Sending Emailhttps://void.cloud/guide/email/sending
Receiving Emailhttps://void.cloud/guide/email/receiving
Domains and Setuphttps://void.cloud/guide/email/domains
Sandboxeshttps://void.cloud/guide/sandboxes
Cron Jobshttps://void.cloud/guide/jobs
Queueshttps://void.cloud/guide/queues
WebSocketshttps://void.cloud/guide/websockets
Server-Sent Eventshttps://void.cloud/guide/sse
Live Event Streamshttps://void.cloud/guide/live
Testinghttps://void.cloud/guide/testing
Remote Developmenthttps://void.cloud/guide/remote-dev
Deploying Your Apphttps://void.cloud/guide/deployment
Project Collaborationhttps://void.cloud/guide/project-collaboration
brought to you byhttps://voidzero.dev
​https://void.cloud/guide/testing#testing
Vitesthttps://vitest.dev/
convention directorieshttps://void.cloud/reference/structure
​https://void.cloud/guide/testing#bindings
vi.mock()https://vitest.dev/api/vi#vi-mock
​https://void.cloud/guide/testing#email
Testinghttps://void.cloud/guide/email/sending#testing
Testing inbound handlershttps://void.cloud/guide/email/receiving#testing-inbound-handlers
Suggest changes to this pagehttps://github.com/voidzero-dev/void/edit/main/docs/guide/testing.md
Previous pageLive Event Streamshttps://void.cloud/guide/live
Next pageRemote Developmenthttps://void.cloud/guide/remote-dev
Guidehttps://void.cloud/guide/
Integrationshttps://void.cloud/integrations/frameworks/overview
Referencehttps://void.cloud/reference/structure
Vite+https://viteplus.dev
Vitehttps://vite.dev
Vitesthttps://vitest.dev
Rolldownhttps://rolldown.rs
Oxchttps://oxc.rs
VoidZerohttps://voidzero.dev
Bloghttps://voidzero.dev/blog
Discordhttps://discord.gg/cC6TEVFKSx
X.comhttps://x.com/voidzerodev
Blueskyhttps://bsky.app/profile/voidzero.dev
GitHubhttps://github.com/voidzero-dev/void

Viewport: width=device-width,initial-scale=1


URLs of crawlers that visited me.