Skip to content

Commit a8c47a4

Browse files
committed
test(cli): drive migrate record-currency-codes in the --json stdout purity family
discoverFamily() finds the new member (bootSchemaStack + --json flag); FAMILY did not list it, so the nightly reconciliation pin went red. Drive it with its required pair on the fixture's jp_ticket.title, reaching the INVALID_FIELD refusal face after a read-only boot. Claude-Session: https://claude.ai/code/session_01QUs3BuiMGLNsVXrDee61JM Co-authored-by: Claude <noreply@anthropic.com>
1 parent 22ce3d1 commit a8c47a4

1 file changed

Lines changed: 11 additions & 0 deletions

File tree

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

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -136,6 +136,17 @@ const FAMILY: Record<string, string[]> = {
136136
// directory gains nothing.
137137
'migrate organization-ownership': [],
138138
'migrate plan': [],
139+
// [ADR-0144] One pair per run, and all three flags are required. A dry run is
140+
// its DEFAULT and the only form driven here: without `--apply` it boots
141+
// read-only (`deferSchemaDdl` + `readOnlyProbe`) and writes nothing. The
142+
// fixture's `jp_ticket.title` is not a record-mode currency field, so the
143+
// face driven here is its REFUSAL face — the backfill's `INVALID_FIELD`
144+
// before any row is read, emitted compact (`emitJson(…, 0, { compact: true })`
145+
// then `this.exit(1)`) after the boot and before the `finally` shutdown, so
146+
// the shutdown's diagnostics follow the document and must stay off stdout.
147+
// Widening the shared fixture with a currency field would move the faces of
148+
// the members that walk every object; the refusal still boots the stack.
149+
'migrate record-currency-codes': ['--object', 'jp_ticket', '--field', 'title', '--code', 'USD'],
139150
'migrate recorded-by': [],
140151
'migrate resume': [],
141152
// A preview is its DEFAULT and the only form driven here: without `--apply`

0 commit comments

Comments
 (0)