mirror of
https://github.com/stablyai/orca.git
synced 2026-11-13 09:27:29 +00:00
* Revert "Make chat wait check the chat's work state instead of reading its history every second (#41129)" This reverts commit9a10464bec. * Revert "feat(cli): read, message and wait on agent chats with orca chat list/read/send/wait (#40836)" This reverts commitc2e6ebbf0b.
38 lines
1.5 KiB
TypeScript
38 lines
1.5 KiB
TypeScript
import { existsSync } from 'node:fs'
|
|
import { resolve } from 'node:path'
|
|
import { defineConfig } from 'vitest/config'
|
|
import baseConfig from './vitest.config'
|
|
import { nodeRuntimePool } from './scripts/test-runtime/node-worker/vitest-node-runtime-pool'
|
|
|
|
const contracts = [
|
|
'src/main/runtime/session-tabs/session-tabs-phone-layout-moves.test.ts',
|
|
'src/main/native-chat/agent-session-wire/host/testing/structured-agent-session-terminal-writer-acquire.test.ts',
|
|
'src/renderer/src/components/tab-bar/use-new-tab-agent-menu-host-preferences.test.tsx',
|
|
'src/main/sqlite/sync-database.test.ts',
|
|
'src/shared/native-chat/tools/native-chat-tool-pairing.performance.test.ts',
|
|
'src/main/codex-usage/codex-rollout-file-lifetime.test.ts',
|
|
'src/main/codex-usage/scanner-incremental-append.test.ts',
|
|
'src/main/usage/source-input/jsonl/jsonl-file-reader.test.ts',
|
|
'config/scripts/static-analysis/oxlint-contracts/app-store-performance-plugin.test.mjs',
|
|
'config/scripts/static-analysis/oxlint-contracts/quadratic-buffer-concat-plugin.test.mjs'
|
|
]
|
|
for (const contract of contracts) {
|
|
if (!existsSync(resolve(contract))) {
|
|
throw new Error(`Missing performance contract: ${contract}`)
|
|
}
|
|
}
|
|
|
|
export default defineConfig({
|
|
...baseConfig,
|
|
test: {
|
|
...baseConfig.test,
|
|
// Project-level includes otherwise override this contract-only selection.
|
|
projects: undefined,
|
|
...(process.versions.bun ? { pool: 'node-runtime', poolRunner: nodeRuntimePool } : {}),
|
|
include: contracts,
|
|
benchmark: { include: [] },
|
|
fileParallelism: false,
|
|
retry: 0
|
|
}
|
|
})
|