Skip to content

Commit 9d97918

Browse files
committed
fix tests
1 parent 3f7cab4 commit 9d97918

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

apps/sim/app/api/webhooks/trigger/[path]/route.test.ts

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -249,6 +249,12 @@ vi.mock('@/lib/webhooks/processor', () => ({
249249
}
250250
),
251251
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),
252258
queueWebhookExecution: vi.fn().mockImplementation(async () => {
253259
// Call processWebhookMock so tests can verify it was called
254260
processWebhookMock()

0 commit comments

Comments
 (0)