mirror of
https://github.com/stablyai/orca.git
synced 2026-10-09 08:02:35 +00:00
* Keep test interruption signals within owned processes * Pin Bun and add optional unit runner shutdown diagnostics * Unblock CI lint without changing session host runtime * Avoid duplicating runtime import-check dependency bundles * Leave unit runner diagnostics disabled by default * test: keep runner incident follow-up focused on durable guards * test: apply transcript replacements as authoritative snapshots
25 lines
724 B
JavaScript
25 lines
724 B
JavaScript
import { resolve } from 'node:path'
|
|
import { runProcessSync } from './script-child-process.mjs'
|
|
|
|
const root = resolve(import.meta.dirname, '../..')
|
|
try {
|
|
const result = runProcessSync({
|
|
program: 'bun',
|
|
args: ['--bun', resolve(root, 'node_modules/vitest/vitest.mjs'), ...process.argv.slice(2)],
|
|
cwd: root,
|
|
env: {
|
|
...process.env,
|
|
ORCA_BACKGROUND_LAUNCH: '1',
|
|
ORCA_TEST_NODE_EXECUTABLE: process.execPath,
|
|
ORCA_TEST_NODE_VERSION: process.versions.node
|
|
},
|
|
stdio: 'inherit',
|
|
timeoutMs: null
|
|
})
|
|
|
|
process.exitCode = result.code ?? 1
|
|
} catch (error) {
|
|
console.error('Could not start Vitest. Install the Bun version in config/.bun-version.', error)
|
|
process.exitCode = 1
|
|
}
|