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"