(method: string, body: Record<string, unknown>)
| 52 | import { GET, POST } from './route' |
| 53 | |
| 54 | function 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 | |
| 62 | describe('Copilot Checkpoints API Route', () => { |
| 63 | beforeEach(() => { |