diff --git a/tests/cli-status-menubar.test.ts b/tests/cli-status-menubar.test.ts index 954f2a07..d2186b46 100644 --- a/tests/cli-status-menubar.test.ts +++ b/tests/cli-status-menubar.test.ts @@ -3,7 +3,12 @@ import { tmpdir } from 'node:os' import { delimiter as pathDelimiter, join } from 'node:path' import { spawnSync } from 'node:child_process' -import { describe, expect, it } from 'vitest' +import { describe, expect, it, vi } from 'vitest' + +// Every case here spawns the real CLI and does genuine multi-provider parse +// work; the 5s default is fine on a dev laptop and not on a shared 2-core +// runner, where individual cases have been observed needing 6-8s. +vi.setConfig({ testTimeout: 30_000 }) function runCli(args: string[], home: string, extraEnv: Record = {}) { return spawnSync(process.execPath, ['--import', 'tsx', 'src/cli.ts', ...args], { @@ -268,7 +273,7 @@ describe('codeburn status --format menubar-json', () => { } finally { await rm(home, { recursive: true, force: true }) } - }, 30_000) + }) it('keeps idle Claude config options visible for the selected period', async () => { const home = await mkdtemp(join(tmpdir(), 'codeburn-menubar-claude-config-idle-'))