Skip to content

Commit 43a47e8

Browse files
committed
fixed ci tests failing
1 parent fd967b2 commit 43a47e8

File tree

1 file changed

+17
-1
lines changed

1 file changed

+17
-1
lines changed

apps/sim/lib/logs/execution/snapshot/service.test.ts

Lines changed: 17 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,8 +4,24 @@
44
import { databaseMock, drizzleOrmMock, loggerMock } from '@sim/testing'
55
import { beforeEach, describe, expect, it, vi } from 'vitest'
66

7+
const { mockSchemaExports } = vi.hoisted(() => ({
8+
mockSchemaExports: {
9+
workflowExecutionSnapshots: {
10+
id: 'id',
11+
workflowId: 'workflow_id',
12+
stateHash: 'state_hash',
13+
stateData: 'state_data',
14+
createdAt: 'created_at',
15+
},
16+
workflowExecutionLogs: {
17+
id: 'id',
18+
stateSnapshotId: 'state_snapshot_id',
19+
},
20+
},
21+
}))
22+
723
vi.mock('@sim/db', () => databaseMock)
8-
vi.mock('@sim/db/schema', () => ({}))
24+
vi.mock('@sim/db/schema', () => mockSchemaExports)
925
vi.mock('@sim/logger', () => loggerMock)
1026
vi.mock('drizzle-orm', () => drizzleOrmMock)
1127
vi.mock('uuid', () => ({ v4: vi.fn(() => 'generated-uuid-1') }))

0 commit comments

Comments
 (0)