Skip to content

Commit a1ee967

Browse files
committed
test(cli): declare os migrate stored-expressions in the bootSchemaStack family rosters
The command boots through bootSchemaStack, so the one-shot family table (schema-migrate.one-shot-family.integration.test.ts CALLERS) and the --json stdout purity family (json-stdout-purity.e2e.test.ts FAMILY) both discover it; each now drives it, as summary-nulls is driven. Claude-Session: https://claude.ai/code/session_01Utp6Cb2FL7H75wB1wA6PpZ Co-authored-by: Claude <noreply@anthropic.com>
1 parent 3378366 commit a1ee967

2 files changed

Lines changed: 10 additions & 0 deletions

File tree

‎packages/cli/src/utils/schema-migrate.one-shot-family.integration.test.ts‎

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -81,6 +81,7 @@ import MigrateRecordCurrencyCodes from '../commands/migrate/record-currency-code
8181
import MigrateRecordedBy from '../commands/migrate/recorded-by.js';
8282
import MigrateResume from '../commands/migrate/resume.js';
8383
import MigrateSecurityCatalogOverlays from '../commands/migrate/security-catalog-overlays.js';
84+
import MigrateStoredExpressions from '../commands/migrate/stored-expressions.js';
8485
import MigrateSummaryNulls from '../commands/migrate/summary-nulls.js';
8586
import MigrateUnmappedColumns from '../commands/migrate/unmapped-columns.js';
8687
import MigrateValueShapes from '../commands/migrate/value-shapes.js';
@@ -344,6 +345,13 @@ const CALLERS: Record<string, Caller> = {
344345
argv: ['--apply', '--yes', '--database-url', '@DB@', '--json'],
345346
}],
346347
},
348+
'commands/migrate/stored-expressions.ts': {
349+
run: invoke(MigrateStoredExpressions),
350+
// The fixture's app declares no stored computed field, so the walk finds
351+
// nothing and `--apply` writes nothing — the boot is what these cases are about.
352+
noWrite: [{ label: 'migrate stored-expressions', argv: ['--database-url', '@DB@', '--json'] }],
353+
write: [{ label: 'migrate stored-expressions --apply', argv: ['--apply', '--yes', '--database-url', '@DB@', '--json'] }],
354+
},
347355
'commands/migrate/summary-nulls.ts': {
348356
run: invoke(MigrateSummaryNulls),
349357
noWrite: [{ label: 'migrate summary-nulls', argv: ['--database-url', '@DB@', '--json'] }],

‎packages/cli/test/json-stdout-purity.e2e.test.ts‎

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -168,6 +168,8 @@ const FAMILY: Record<string, string[]> = {
168168
// `sys_metadata` hydration, so it deletes nothing. No table exists in the
169169
// fixture, so the face driven here is its empty listing.
170170
'migrate security-catalog-overlays': [],
171+
// Its dry run takes the `summary-nulls` shape: a read-only boot, no row written.
172+
'migrate stored-expressions': [],
171173
'migrate summary-nulls': [],
172174
// One object per run, so it needs a name: the fixture's own `jp_ticket`,
173175
// which the composed host config registers. No database file exists, so the

0 commit comments

Comments
 (0)