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

Function createMockRequest

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

Source from the content-addressed store, hash-verified

20import { GET, POST } from '@/app/api/copilot/feedback/route'
21
22function createMockRequest(method: string, body: Record<string, unknown>): NextRequest {
23 return new NextRequest('http://localhost:3000/api/copilot/feedback', {
24 method,
25 body: JSON.stringify(body),
26 headers: { 'Content-Type': 'application/json' },
27 })
28}
29
30describe('Copilot Feedback API Route', () => {
31 beforeEach(() => {

Callers 1

route.test.tsFile · 0.70

Calls

no outgoing calls

Tested by

no test coverage detected