Chat agent that composes and edits Payload pages from your block library
Test API Route Handler
Tests Payload API routes in-process through an HTTP-style client, with no server
Installation
pnpm add payload-test-api-route-handler About
Test Payload API routes without starting a web server. The package gives you a client with the usual request interface that sends calls straight into Payload's handler pipeline, so tests skip the dev server and finish in milliseconds.
Login and token-based requests work as they do in a running app, so authenticated routes can be tested with a real user session. Built-in collection and global CRUD endpoints and custom endpoints you define are all reachable. Each request can be modified before it reaches its handler, for example to force a mock user, and database transactions flow through hooks the way they do in production.
Package info
- Package name
payload-test-api-route-handler- Latest version
1.0.0- Unpacked size
- 27 kB
- License
- MIT
- Weekly downloads
- 2
- Last publish
- Jul 14, 2026
Similar plugins
More in DevtoolsExposes Payload collections and globals to AI agents through the Model Context Protocol
Lets AI assistants read and edit Payload content over MCP with scoped API keys
Editorial suite that lets teams run a Payload site through MCP tools and AI assistants
Typed block registry and React Server Component renderer for Payload blocks
Runs Payload CMS admin and APIs under vinext, on Node or Cloudflare Workers