test(auth): improve test environment variable cleanup (#7451)

Co-authored-by: cornmander <shikhman@google.com>
This commit is contained in:
Arya Gummadi
2025-09-02 17:21:43 -07:00
committed by GitHub
parent 977149af30
commit d12946ca8c

View File

@@ -18,6 +18,10 @@ vi.mock('./settings.js', () => ({
describe('validateAuthMethod', () => {
beforeEach(() => {
vi.resetModules();
vi.stubEnv('GEMINI_API_KEY', undefined);
vi.stubEnv('GOOGLE_CLOUD_PROJECT', undefined);
vi.stubEnv('GOOGLE_CLOUD_LOCATION', undefined);
vi.stubEnv('GOOGLE_API_KEY', undefined);
});
afterEach(() => {