test(cli): force generic terminal in tests to fix snapshot failures (#23499)

This commit is contained in:
Abhi
2026-03-23 10:50:25 -04:00
committed by GitHub
parent c67817f1a9
commit d0ebc81c28
4 changed files with 223 additions and 0 deletions
+3
View File
@@ -30,6 +30,9 @@ process.env.FORCE_COLOR = '3';
// Force generic keybinding hints to ensure stable snapshots across different operating systems.
process.env.FORCE_GENERIC_KEYBINDING_HINTS = 'true';
// Force generic terminal declaration to ensure stable snapshots across different host environments.
process.env.TERM_PROGRAM = 'generic';
import './src/test-utils/customMatchers.js';
let consoleErrorSpy: vi.SpyInstance;