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/config/auth.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/config/auth.test.ts')
| -rw-r--r-- | packages/cli/src/config/auth.test.ts | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/packages/cli/src/config/auth.test.ts b/packages/cli/src/config/auth.test.ts index 96defb1e..ddfed236 100644 --- a/packages/cli/src/config/auth.test.ts +++ b/packages/cli/src/config/auth.test.ts @@ -34,7 +34,7 @@ describe('validateAuthMethod', () => { describe('USE_GEMINI', () => { it('should return null if GEMINI_API_KEY is set', () => { - process.env.GEMINI_API_KEY = 'test-key'; + process.env['GEMINI_API_KEY'] = 'test-key'; expect(validateAuthMethod(AuthType.USE_GEMINI)).toBeNull(); }); @@ -47,13 +47,13 @@ describe('validateAuthMethod', () => { describe('USE_VERTEX_AI', () => { it('should return null if GOOGLE_CLOUD_PROJECT and GOOGLE_CLOUD_LOCATION are set', () => { - process.env.GOOGLE_CLOUD_PROJECT = 'test-project'; - process.env.GOOGLE_CLOUD_LOCATION = 'test-location'; + process.env['GOOGLE_CLOUD_PROJECT'] = 'test-project'; + process.env['GOOGLE_CLOUD_LOCATION'] = 'test-location'; expect(validateAuthMethod(AuthType.USE_VERTEX_AI)).toBeNull(); }); it('should return null if GOOGLE_API_KEY is set', () => { - process.env.GOOGLE_API_KEY = 'test-api-key'; + process.env['GOOGLE_API_KEY'] = 'test-api-key'; expect(validateAuthMethod(AuthType.USE_VERTEX_AI)).toBeNull(); }); |
