Orca is the place for working with a fleet of agents (e.g. Grok Bot, Claude Code). Run any coding agent with your own subscription. Available on desktop, mobile and remote runtime.
TypeScript adeagent-ideai-agentsautomationbotclaude-codecodexghosttygrok-bothermes-agentmobile-appmuseopenclawopencodeorchestrationpiruntimeterminalworktreesyc-backed
import { describe, expect, it } from 'vitest'
import { reviewRefreshIntervalMs } from './review-refresh-policy'
describe('review refresh intervals', () => {
it.each([
[{ state: 'open', selected: true }, 60_000],
[{ state: 'open', selected: false }, 120_000],
[{ state: 'draft', selected: true }, 60_000],
[{ state: 'draft' }, 120_000],
[{ state: 'merged', checksStatus: 'pending' }, 60_000],
[{ state: 'merged', checksStatus: null }, 60_000],
[{ state: 'merged' }, 60_000],
[{ state: 'merged', checksStatus: 'success' }, null],
[{ state: 'merged', checksStatus: 'failure' }, null],
[{ state: 'merged', checksStatus: 'neutral' }, null],
[{ state: 'closed', selected: true }, 900_000],
[{ state: 'closed' }, 900_000],
[{ hasReview: false, selected: true }, 60_000],
[{ hasReview: false }, 900_000],
[{ state: 'open', checksStatus: 'success' }, 120_000],
[{ state: 'open', checksStatus: 'failure', selected: true }, 60_000]
] as const)('uses %j → %s', (input, expected) => {
expect(reviewRefreshIntervalMs(input)).toBe(expected)
})
})