Skip to content

Commit 7aed473

Browse files
author
test
committed
test: mock AuthType in async execute route
Keep the rebased async execute route test aligned with the current hybrid auth module exports so it exercises the queueing path instead of failing at import time.
1 parent d6222b3 commit 7aed473

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

apps/sim/app/api/workflows/[id]/execute/route.async.test.ts

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -18,6 +18,11 @@ const {
1818
}))
1919

2020
vi.mock('@/lib/auth/hybrid', () => ({
21+
AuthType: {
22+
SESSION: 'session',
23+
API_KEY: 'api_key',
24+
INTERNAL_JWT: 'internal_jwt',
25+
},
2126
checkHybridAuth: mockCheckHybridAuth,
2227
}))
2328

0 commit comments

Comments
 (0)