test: align ingest surface expectations

This commit is contained in:
Andrey Avtomonov 2026-05-13 18:14:01 +02:00
parent 220fb5f8ea
commit 43bf5bfdc5
6 changed files with 22 additions and 21 deletions

View file

@ -47,7 +47,7 @@ function inputMode(options: OutputModeOptions): Pick<KtxIngestArgs, 'inputMode'>
return options.input === false ? { inputMode: 'disabled' } : {};
}
function resolvedOptions<T extends object>(command: Command, fallback: T): T {
function resolvedOptions<T extends object>(command: { optsWithGlobals?: () => object }, fallback: T): T {
return (command.optsWithGlobals ? command.optsWithGlobals() : fallback) as T;
}