Files
orca/config/mobile-ci.vitest.config.mjs
Neil 19043a3d76 refactor(mobile): organize pairing, session, RPC and host owners (#39846)
* refactor(mobile): give relay and encryption concrete owners

* refactor(mobile): organize session and review feature owners

* refactor(mobile): organize RPC and host ownership

* test(mobile): point render fixtures at concrete owners

* refactor(mobile): use explicit type-only owner imports
2026-11-08 07:19:05 -08:00

35 lines
1.3 KiB
JavaScript

import { defaultExclude, mergeConfig } from 'vitest/config'
import original from '../mobile/vitest.config.ts'
// Keep real process, native, and runtime-specific contracts on Node.
const nodeFiles = [
'src/components/WorktreeAgentList.runtime-lineage.test.tsx',
'scripts/check-tests-typecheck-incremental-cache.test.ts',
'src/mock-server-key-pair.test.ts',
'src/mobile-release/prepare-android-release-script.test.ts',
'src/navigation/query-string-named-exports.test.ts',
'src/components/mobile-markdown-parser-progress.test.ts',
'src/components/rich-markdown/native-document-bundle.test.ts',
'src/terminal/document/native-document-bundle.test.ts',
'src/transport/encryption/mobile-e2ee-v2-client-session.test.ts',
'src/transport/encryption/mobile-e2ee-v2-physical-channel.test.ts',
'src/test-support/rpc-recording/family-recordings.test.ts'
]
const config = mergeConfig(original, { cacheDir: process.env.ORCA_MOBILE_CI_CACHE_DIR })
// Assign include after merging: mergeConfig concatenates arrays.
export default {
...config,
test: {
...config.test,
isolate: true,
...(process.versions.bun
? {
maxWorkers: 3,
exclude: [...(config.test?.exclude ?? defaultExclude), ...nodeFiles]
}
: { maxWorkers: 1, include: nodeFiles })
}
}