本页还没有译文
本页 7 段还没译成日本語,下面显示的是英文原文。Integration test harness
还没翻译译自英文(developers.cloudflare.com)本页 7 段都还没译
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.
Features
- Runs production build output from Wrangler or the Cloudflare Vite plugin
- Dispatches requests and events to one or more Workers
- Provides access to bindings and local storage from tests
- Captures logs and diagnostic output from the Workers runtime
Guides
Configure Workers, test values, lifecycle hooks, and failure diagnostics.
Seed storage, mock outbound requests, and replace bindings.
Test routes, dispatch events, control Workflows, and assert logs.
Use the test harness with MSW and Playwright.
AI 翻译查看英文原文