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

Function createTableRow

packages/testing/src/factories/table.factory.ts:52–62  ·  view source on GitHub ↗
(options: TableRowFactoryOptions = {})

Source from the content-addressed store, hash-verified

50 * Creates a table row fixture with sensible defaults.
51 */
52export function createTableRow(options: TableRowFactoryOptions = {}): TableRowFixture {
53 const timestamp = new Date().toISOString()
54
55 return {
56 id: options.id ?? `row_${generateShortId(8)}`,
57 data: options.data ?? {},
58 position: options.position ?? 0,
59 createdAt: options.createdAt ?? timestamp,
60 updatedAt: options.updatedAt ?? timestamp,
61 }
62}

Callers

nothing calls this directly

Calls 1

generateShortIdFunction · 0.90

Tested by

no test coverage detected