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

Function makeRow

apps/sim/lib/copilot/tools/handlers/upload-file-reader.test.ts:27–44  ·  view source on GitHub ↗
(overrides: Partial<Record<string, unknown>> = {})

Source from the content-addressed store, hash-verified

25const NOW = new Date('2026-05-05T00:00:00.000Z')
26
27function makeRow(overrides: Partial<Record<string, unknown>> = {}) {
28 return {
29 id: 'wf_1',
30 key: 'mothership/abc/123-image.png',
31 userId: 'user_1',
32 workspaceId: 'ws_1',
33 context: 'mothership',
34 chatId: CHAT_ID,
35 originalName: 'image.png',
36 displayName: 'image.png',
37 contentType: 'image/png',
38 size: 1024,
39 deletedAt: null,
40 uploadedAt: NOW,
41 updatedAt: NOW,
42 ...overrides,
43 }
44}
45
46/**
47 * Resolver chain is `.where().orderBy(...).limit(1)`. The default chain mock makes

Callers 1

Calls

no outgoing calls

Tested by

no test coverage detected