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

Function makePendingRow

apps/sim/lib/core/outbox/service.test.ts:136–151  ·  view source on GitHub ↗
(overrides: Partial<OutboxRow> = {})

Source from the content-addressed store, hash-verified

134import { enqueueOutboxEvent, processOutboxEvents } from './service'
135
136function makePendingRow(overrides: Partial<OutboxRow> = {}): OutboxRow {
137 return {
138 id: 'evt-1',
139 eventType: 'test.event',
140 payload: { foo: 'bar' },
141 status: 'pending',
142 attempts: 0,
143 maxAttempts: 10,
144 availableAt: new Date(Date.now() - 1000),
145 lockedAt: null,
146 lastError: null,
147 createdAt: new Date(Date.now() - 5000),
148 processedAt: null,
149 ...overrides,
150 }
151}
152
153function resetState() {
154 state.claimedRows = []

Callers 1

service.test.tsFile · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected