(options: TableColumnFactoryOptions = {})
| 38 | * Creates a table column fixture with sensible defaults. |
| 39 | */ |
| 40 | export function createTableColumn(options: TableColumnFactoryOptions = {}): TableColumnFixture { |
| 41 | return { |
| 42 | name: options.name ?? `column_${generateShortId(6, COLUMN_SUFFIX_ALPHABET)}`, |
| 43 | type: options.type ?? 'string', |
| 44 | required: options.required, |
| 45 | unique: options.unique, |
| 46 | } |
| 47 | } |
| 48 | |
| 49 | /** |
| 50 | * Creates a table row fixture with sensible defaults. |
no test coverage detected