Configure the test harness
Configure Workers, test values, lifecycle hooks, and failure diagnostics.
← Cloudflare Workers / workers / testing
createTestHarness() is a Wrangler API for integration testing from any Node.js test runner. It runs one or more Workers from Wrangler projects or Vite projects that use the Cloudflare Vite plugin.
Get started
View complete example
Request your free pilot
Schedule a pilot