Skip to content

Commit 8bb57d4

Browse files
author
test
committed
test(workflows): reset async route mocks between tests
1 parent abbf8c9 commit 8bb57d4

File tree

1 file changed

+7
-0
lines changed

1 file changed

+7
-0
lines changed

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

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -88,6 +88,13 @@ describe('workflow execute async route', () => {
8888
beforeEach(() => {
8989
vi.clearAllMocks()
9090

91+
mockCheckHybridAuth.mockReset()
92+
mockAuthorizeWorkflowByWorkspacePermission.mockReset()
93+
mockPreprocessExecution.mockReset()
94+
mockGetJobQueue.mockReset()
95+
mockShouldExecuteInline.mockReset()
96+
mockEnqueue.mockReset()
97+
9198
mockEnqueue.mockResolvedValue('job-123')
9299
mockGetJobQueue.mockResolvedValue({
93100
enqueue: mockEnqueue,

0 commit comments

Comments
 (0)