Fix CLI progress tests under CI

This commit is contained in:
Andrey Avtomonov 2026-05-11 23:29:09 +02:00
parent d9255f7bf3
commit 93f1216988
2 changed files with 5 additions and 1 deletions

View file

@ -22,6 +22,7 @@ import { resetVizFallbackWarningsForTest } from './viz-fallback.js';
describe('runKtxIngest viz and replay', () => {
let tempDir: string;
let originalTerm: string | undefined;
const interactiveEnv = (): NodeJS.ProcessEnv => ({ ...process.env, CI: 'false' });
beforeEach(async () => {
resetVizFallbackWarningsForTest();
@ -325,7 +326,7 @@ describe('runKtxIngest viz and replay', () => {
outputMode: 'plain',
},
io.io,
{ runLocalIngest: runLocal },
{ env: interactiveEnv(), runLocalIngest: runLocal },
),
).resolves.toBe(0);
@ -396,6 +397,7 @@ describe('runKtxIngest viz and replay', () => {
},
io.io,
{
env: interactiveEnv(),
runLocalIngest: runLocal,
startLiveMemoryFlow,
jobIdFactory: () => 'raw-missing-viz-run',

View file

@ -36,6 +36,7 @@ import { resetVizFallbackWarningsForTest } from './viz-fallback.js';
describe('runKtxIngest', () => {
let tempDir: string;
let originalTerm: string | undefined;
const interactiveEnv = (): NodeJS.ProcessEnv => ({ ...process.env, CI: 'false' });
beforeEach(async () => {
resetVizFallbackWarningsForTest();
@ -897,6 +898,7 @@ describe('runKtxIngest', () => {
},
io.io,
{
env: interactiveEnv(),
createAdapters,
runLocalIngest: runLocal,
jobIdFactory: () => 'historic-progress-job',