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.

949 B
Raw Blame
import { fileURLToPath } from 'node:url'
import { defineConfig } from 'vitest/config'

const vitestOxcConfig = { tsconfig: false } as never

export default defineConfig({
  root: import.meta.dirname,
  // Tests are excluded from the app tsconfig; disable that config for OXC so test modules still transform.
  oxc: vitestOxcConfig,
  resolve: {
    // A faithful Node stand-in for the native module, rather than a mock in every test that reaches it.
    alias: {
      'expo-crypto': fileURLToPath(
        new URL('./src/test-support/expo-crypto-node.ts', import.meta.url)
      )
    }
  },
  test: {
    pool: 'threads',
    environment: 'node',
    setupFiles: ['./vitest.setup.ts'],
    onConsoleLog: (log) => !log.includes('react-test-renderer is deprecated'),
    // Collect component and script tests too so render regressions and CI tooling are covered.
    include: ['src/**/*.test.ts', 'src/**/*.test.tsx', 'scripts/**/*.test.ts']
  }
})