We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 3f7cab4 commit 9d97918Copy full SHA for 9d97918
apps/sim/app/api/webhooks/trigger/[path]/route.test.ts
@@ -249,6 +249,12 @@ vi.mock('@/lib/webhooks/processor', () => ({
249
}
250
),
251
checkWebhookPreprocessing: vi.fn().mockResolvedValue(null),
252
+ formatProviderErrorResponse: vi.fn().mockImplementation((_webhook, error, status) => {
253
+ const { NextResponse } = require('next/server')
254
+ return NextResponse.json({ error }, { status })
255
+ }),
256
+ shouldSkipWebhookEvent: vi.fn().mockReturnValue(false),
257
+ handlePreDeploymentVerification: vi.fn().mockReturnValue(null),
258
queueWebhookExecution: vi.fn().mockImplementation(async () => {
259
// Call processWebhookMock so tests can verify it was called
260
processWebhookMock()
0 commit comments