diff options
| author | Richie Foreman <[email protected]> | 2025-08-17 12:43:21 -0400 |
|---|---|---|
| committer | GitHub <[email protected]> | 2025-08-17 16:43:21 +0000 |
| commit | 2998f27f703282359f6389d1c2d8758fc6a14955 (patch) | |
| tree | a7e3ff7f969c44e61ab27240cdd615e291b6deae /packages/cli/src/ui/themes/theme-manager.test.ts | |
| parent | ec1fa954d18ec9abab3ce669536dd24559a499f1 (diff) | |
chore(compiler): Enable strict property access TS compiler flag. (#6255)
Co-authored-by: Jacob Richman <[email protected]>
Diffstat (limited to 'packages/cli/src/ui/themes/theme-manager.test.ts')
| -rw-r--r-- | packages/cli/src/ui/themes/theme-manager.test.ts | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/packages/cli/src/ui/themes/theme-manager.test.ts b/packages/cli/src/ui/themes/theme-manager.test.ts index 0b2c17c0..91e51bf9 100644 --- a/packages/cli/src/ui/themes/theme-manager.test.ts +++ b/packages/cli/src/ui/themes/theme-manager.test.ts @@ -5,8 +5,8 @@ */ // Patch: Unset NO_COLOR at the very top before any imports -if (process.env.NO_COLOR !== undefined) { - delete process.env.NO_COLOR; +if (process.env['NO_COLOR'] !== undefined) { + delete process.env['NO_COLOR']; } import { describe, it, expect, beforeEach } from 'vitest'; @@ -87,13 +87,13 @@ describe('ThemeManager', () => { }); it('should return NoColorTheme if NO_COLOR is set', () => { - const original = process.env.NO_COLOR; - process.env.NO_COLOR = '1'; + const original = process.env['NO_COLOR']; + process.env['NO_COLOR'] = '1'; expect(themeManager.getActiveTheme().name).toBe('NoColor'); if (original === undefined) { - delete process.env.NO_COLOR; + delete process.env['NO_COLOR']; } else { - process.env.NO_COLOR = original; + process.env['NO_COLOR'] = original; } }); }); |
