Skip to content

Commit 47dadaa

Browse files
fix: hoist cancellation test mocks
Co-authored-by: Claude Opus 4.6 <noreply@anthropic.com>
1 parent 14ca75d commit 47dadaa

File tree

1 file changed

+4
-2
lines changed

1 file changed

+4
-2
lines changed

apps/sim/lib/execution/cancellation.test.ts

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,10 @@
11
import { loggerMock } from '@sim/testing'
22
import { beforeEach, describe, expect, it, vi } from 'vitest'
33

4-
const mockGetRedisClient = vi.fn()
5-
const mockRedisSet = vi.fn()
4+
const { mockGetRedisClient, mockRedisSet } = vi.hoisted(() => ({
5+
mockGetRedisClient: vi.fn(),
6+
mockRedisSet: vi.fn(),
7+
}))
68

79
vi.mock('@sim/logger', () => loggerMock)
810

0 commit comments

Comments
 (0)