From 0af44330b59aef0cc6cbf5afa1cfa0a826ddb5ed Mon Sep 17 00:00:00 2001 From: William Valentin Date: Mon, 23 Feb 2026 20:48:03 -0800 Subject: [PATCH] test(doctor): isolate gmail missing-token check from host auth store --- src/cli/doctor.test.ts | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/src/cli/doctor.test.ts b/src/cli/doctor.test.ts index 40b9fce..673badc 100644 --- a/src/cli/doctor.test.ts +++ b/src/cli/doctor.test.ts @@ -174,9 +174,15 @@ models: it('reports WARN for Gmail when token missing', async () => { mkdirSync(testDir, { recursive: true }); + process.env.HOME = testDir; const configPath = join(testDir, 'config.yaml'); const credsPath = join(testDir, 'gmail-creds.json'); writeFileSync(credsPath, '{}'); + mkdirSync(join(testDir, '.config/flynn'), { recursive: true }); + writeFileSync( + join(testDir, '.config/flynn/auth.json'), + JSON.stringify({}), + ); writeFileSync(configPath, ` telegram: bot_token: "test-token"