MCPcopy Create free account
hub / github.com/simstudioai/sim / createMockRequest

Function createMockRequest

apps/sim/app/api/copilot/checkpoints/route.test.ts:54–60  ·  view source on GitHub ↗
(method: string, body: Record<string, unknown>)

Source from the content-addressed store, hash-verified

52import { GET, POST } from './route'
53
54function createMockRequest(method: string, body: Record<string, unknown>): NextRequest {
55 return new NextRequest('http://localhost:3000/api/copilot/checkpoints', {
56 method,
57 body: JSON.stringify(body),
58 headers: { 'Content-Type': 'application/json' },
59 })
60}
61
62describe('Copilot Checkpoints API Route', () => {
63 beforeEach(() => {

Callers 1

route.test.tsFile · 0.70

Calls

no outgoing calls

Tested by

no test coverage detected