fix(cli): reset themeManager between tests to ensure isolation (#20598)

This commit is contained in:
N. Taylor Mullen
2026-02-28 11:45:31 -08:00
committed by GitHub
parent b2214a6676
commit cd3a8c3f07
4 changed files with 54 additions and 8 deletions
@@ -56,7 +56,8 @@ const validCustomTheme: CustomTheme = {
describe('ThemeManager', () => {
beforeEach(() => {
// Reset themeManager state
// Reset themeManager state and inject mocks
themeManager.reinitialize({ fs, homedir: os.homedir });
themeManager.loadCustomThemes({});
themeManager.setActiveTheme(DEFAULT_THEME.name);
themeManager.setTerminalBackground(undefined);