From ef1327c8eed21a804ca075b1b53aba6790da3eb6 Mon Sep 17 00:00:00 2001 From: Rudy Celekli Date: Sat, 10 Oct 2026 12:34:28 -0400 Subject: [PATCH] test(cli-core): exercise progress controls on an interactive output Signed-off-by: Rudy Celekli --- tests/output-progress-controls.test.mjs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tests/output-progress-controls.test.mjs b/tests/output-progress-controls.test.mjs index 4ac6c33e0d..a6166bb28c 100644 --- a/tests/output-progress-controls.test.mjs +++ b/tests/output-progress-controls.test.mjs @@ -5,7 +5,7 @@ test('zero-item work has a finite completed progress bar', () => { const f = new OutputFormatter({ color: false }); assert.equal(f.progressBar(0, 0, 4), '[####] 100.0%'); }); test('showPercentage false suppresses the percentage suffix', () => { - const f = new OutputFormatter({ color: false }); const progress = f.createProgress({ total: 2, current: 1, width: 4, showPercentage: false, showETA: false }); + const f = new OutputFormatter({ color: false }); f.supportsInteractiveOutput = () => true; const progress = f.createProgress({ total: 2, current: 1, width: 4, showPercentage: false, showETA: false }); const original = process.stdout.write; let captured = ''; process.stdout.write = function(value) { captured += value; return true; }; try { progress.render(); } finally { process.stdout.write = original; } assert.equal(captured, '[##--]'); });