Comprehensive testing guide for Cloudflare Workers using Vitest and @cloudflare/vitest-pool-workers. Use for test setup, binding mocks (D1/KV/R2/DO), integration tests, or encountering test failures, mock errors, coverage issues.
安装
npx skills add secondsky/claude-skills --skill workers-testingnpx skills add secondsky/claude-skills --skill workers-testing -a claude-code -gnpx skills add secondsky/claude-skills --skill workers-testing -a codex -ggemini skills install https://github.com/secondsky/claude-skills.git --path plugins/cloudflare-workers/skills/cloudflare-workers-testinggh skill install secondsky/claude-skills workers-testinggit clone --depth 1 https://github.com/secondsky/claude-skills /tmp/secondsky__claude-skills
mkdir -p ~/.claude/skills ~/.agents/skills
cp -R /tmp/secondsky__claude-skills/plugins/cloudflare-workers/skills/cloudflare-workers-testing ~/.claude/skills/workers-testing # Claude Code
cp -R /tmp/secondsky__claude-skills/plugins/cloudflare-workers/skills/cloudflare-workers-testing ~/.agents/skills/workers-testing # Codex, Cursor, Gemini CLI, Copilot, OpenCode