test(cli): verify unified ingest public plain output

This commit is contained in:
Andrey Avtomonov 2026-05-13 20:08:32 +02:00
parent 6fcf45543e
commit b7e8abe735
2 changed files with 7 additions and 7 deletions

View file

@ -158,8 +158,8 @@ export function registerIngestCommands(
ingest
.command('status')
.description('Print status for the latest or selected stored local ingest run or report file')
.argument('[runId]', 'Local ingest run id, report id, run id, or job id')
.description('Print status for the latest or selected stored ingest report')
.argument('[runId]', 'Local ingest id, report id, run id, or job id')
.option('--report-file <path>', 'Bundle ingest report JSON file to render')
.addOption(new Option('--plain', 'Print plain text output').conflicts(['json', 'viz']))
.addOption(new Option('--json', 'Print JSON output').conflicts(['plain', 'viz']))
@ -185,7 +185,7 @@ export function registerIngestCommands(
ingest
.command('watch', { hidden: true })
.description('Open the latest or selected stored ingest visual report')
.argument('[runId]', 'Local ingest run id, report id, run id, or job id')
.argument('[runId]', 'Local ingest id, report id, run id, or job id')
.option('--report-file <path>', 'Bundle ingest report JSON file to render')
.addOption(new Option('--plain', 'Print plain text output').conflicts(['json', 'viz']))
.addOption(new Option('--json', 'Print JSON output').conflicts(['plain', 'viz']))
@ -210,8 +210,8 @@ export function registerIngestCommands(
ingest
.command('replay')
.description('Replay a stored ingest run or bundle report through memory-flow output')
.argument('<runId>', 'Local ingest run id, report id, run id, or job id')
.description('Replay a stored ingest report through memory-flow output')
.argument('<runId>', 'Local ingest id, report id, run id, or job id')
.option('--report-file <path>', 'Bundle ingest report JSON file to render')
.addOption(new Option('--plain', 'Print plain text output').conflicts(['json', 'viz']))
.addOption(new Option('--json', 'Print JSON output').conflicts(['plain', 'viz']))

View file

@ -845,7 +845,7 @@ describe('runKtxPublicIngest', () => {
adapter: 'dbt',
sourceDir: '/repo/dbt',
}),
io.io,
expect.objectContaining({ capturedOutput: expect.any(Function) }),
);
});
@ -881,7 +881,7 @@ describe('runKtxPublicIngest', () => {
adapter: 'notion',
allowImplicitAdapter: true,
}),
io.io,
expect.objectContaining({ capturedOutput: expect.any(Function) }),
);
});