Skip to content

armgit / orca

Public Imported from GitHub
0

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.

694 B
Raw Blame
import { homedir } from 'node:os'
import { join } from 'node:path'
import { describe, expect, it } from 'vitest'
import { resolveKiroHomeDir } from './kiro-home'

describe('resolveKiroHomeDir', () => {
  it('defaults to ~/.kiro', () => {
    expect(resolveKiroHomeDir({})).toBe(join(homedir(), '.kiro'))
  })

  it('uses an absolute KIRO_HOME as the root itself', () => {
    const custom = join(homedir(), 'kiro-elsewhere')
    expect(resolveKiroHomeDir({ KIRO_HOME: ` ${custom} ` })).toBe(custom)
  })

  it('ignores a relative KIRO_HOME, which would resolve against Orca’s cwd', () => {
    expect(resolveKiroHomeDir({ KIRO_HOME: 'relative/kiro' })).toBe(join(homedir(), '.kiro'))
  })
})