mirror of
https://github.com/stablyai/orca.git
synced 2026-11-13 17:37:40 +00:00
* refactor(tooling): organize test runtime and maintenance owners * test(tooling): preserve relocated runtime fixture dependency edges * refactor(tooling): preserve xterm routing owner checks * ci(tooling): include routing owner in sparse checkout * test(tooling): preserve copied workflow dependency closures * fix(tooling): normalize hashed JSON assets in release parity * fix(tooling): distinguish asset aliases from literal references * fix(tooling): frame normalized asset reference payloads * fix(tooling): normalize decoded JSON asset references * refactor(tooling): organize build, CI and release owners * fix(tooling): align moved generator and workflow path contracts * fix(tooling): update generated plugin bundle owner banners * test(tooling): create relocated mobile verifier fixture directories * test(tooling): copy headless detector dependency closure * test(tooling): align native batch policy fixtures with owner path * fix(tooling): link moved reliability command to historical evidence * fix(tooling): preserve nested sandbox owners and canonical guide source * fix(tooling): target release version owners in checkout fixture
28 lines
1.4 KiB
TypeScript
28 lines
1.4 KiB
TypeScript
import { readFileSync } from 'node:fs'
|
|
import { expect, it } from 'vitest'
|
|
import { importsSqliteRuntime } from './vitest-sqlite-runtime-scan.mjs'
|
|
|
|
it.each([
|
|
['import { createRestTestRig } from "./structured-agent-session-rest-test-rig"', true],
|
|
['import type { RestTestRig } from "./structured-agent-session-rest-test-rig"', false],
|
|
['import Database, { type Options } from "./sync-database"', true],
|
|
['import {} from "./sync-database"', true],
|
|
['import "./sync-database"', true],
|
|
['import { Database } from "./sync-database"', true],
|
|
['import * as Database from "./sync-database"', true],
|
|
['import { OrchestrationDb } from "../runtime/orchestration/db"', true],
|
|
['import type Database from "./sync-database"', false],
|
|
['import type { Options } from "./sync-database"', false],
|
|
['import { type Options } from "./sync-database"', false]
|
|
])('classifies the runtime dependency in %s', (source, runtime) => {
|
|
expect(importsSqliteRuntime('src/main/sqlite/example.test.ts', source)).toBe(runtime)
|
|
})
|
|
|
|
it.each([
|
|
'src/main/runtime/editor-view-layout-apply.test.ts',
|
|
'src/main/runtime/restored-editor-move-restart.test.ts',
|
|
'src/main/runtime/workspaces/persisted-surfaces/sweep-terminal-placement.test.ts'
|
|
])('routes the real topology SQLite fixture consumer to Node: %s', (file) => {
|
|
expect(importsSqliteRuntime(file, readFileSync(file, 'utf8'))).toBe(true)
|
|
})
|