MCPcopy Index your code
hub / github.com/simstudioai/sim / setupMockTransaction

Function setupMockTransaction

apps/sim/lib/workflows/schedules/deploy.test.ts:710–715  ·  view source on GitHub ↗
(
      existingSchedules: Array<{ id: string; blockId: string }> = []
    )

Source from the content-addressed store, hash-verified

708
709 describe('createSchedulesForDeploy', () => {
710 const setupMockTransaction = (
711 existingSchedules: Array<{ id: string; blockId: string }> = []
712 ) => {
713 mockFrom.mockReturnValue({ where: vi.fn().mockResolvedValue(existingSchedules) })
714 mockSelect.mockReturnValue({ from: mockFrom })
715 }
716
717 it('should return success with no schedule blocks', async () => {
718 const blocks: Record<string, BlockState> = {

Callers 1

deploy.test.tsFile · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected