We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent fb4c982 commit c7b473fCopy full SHA for c7b473f
apps/sim/vitest.setup.ts
@@ -89,6 +89,18 @@ vi.mock('@/blocks/registry', () => ({
89
getAllBlocks: vi.fn(() => ({})),
90
}))
91
92
+vi.mock('@trigger.dev/sdk', () => ({
93
+ task: vi.fn(() => ({ trigger: vi.fn() })),
94
+ tasks: {
95
+ trigger: vi.fn().mockResolvedValue({ id: 'mock-task-id' }),
96
+ batchTrigger: vi.fn().mockResolvedValue([{ id: 'mock-task-id' }]),
97
+ },
98
+ runs: {
99
+ retrieve: vi.fn().mockResolvedValue({ id: 'mock-run-id', status: 'COMPLETED' }),
100
101
+ configure: vi.fn(),
102
+}))
103
+
104
const originalConsoleError = console.error
105
const originalConsoleWarn = console.warn
106
0 commit comments