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 { execFileSync } from 'node:child_process'
import { createRequire } from 'node:module'
import { pathToFileURL } from 'node:url'
import { describe, expect, it } from 'vitest'
// Check named exports in plain Node: Vitest interop can hide missing query-string 9.x names used by Expo/React Navigation.
describe('query-string, as expo-router resolves it', () => {
it('exposes the named API the namespace import needs', () => {
const requireFromHere = createRequire(import.meta.url)
const requireFromExpoRouter = createRequire(requireFromHere.resolve('expo-router/package.json'))
const entry = pathToFileURL(requireFromExpoRouter.resolve('query-string')).href
const script = `const ns = await import(${JSON.stringify(entry)}); process.stdout.write(JSON.stringify({ stringified: ns.stringify({ from: 'worktrees', hostId: 'host/one' }), parsed: ns.parse('from=worktrees&hostId=host%2Fone') }))`
const output = execFileSync(process.execPath, ['--input-type=module', '-e', script], {
encoding: 'utf8'
})
const { stringified, parsed } = JSON.parse(output)
expect(stringified).toBe('from=worktrees&hostId=host%2Fone')
expect(parsed).toEqual({ from: 'worktrees', hostId: 'host/one' })
})
})