Files
orca/config/scripts/node-server/qualification/node-server-test-paths.mjs
T
Neil 6018fca4de refactor: group shared settings, profiles and execution hosts (#43047)
* refactor: place shared settings profiles and host contracts with owners

* fix: retire stale cleanup validation contacts

* refactor: consolidate imports from concrete owners

* refactor: bind new card fixture to profile defaults owner

* style: format rebased concrete host import

* refactor: consolidate project header color owner imports

* fix: load released phone readers after folder moves

* fix: preserve released chat readers and current owner imports
2026-11-16 04:03:33 -08:00

55 lines
2.9 KiB
JavaScript

/** Mirrors ORCA_REQUIRED_TEST_INPUTS_ENV in src/main/orcad/testing/native-slots/orcad-node-slot-fixture.ts. */
export const REQUIRED_TEST_INPUTS_ENV = 'ORCA_REQUIRED_TEST_INPUTS'
export const CROSS_RUNTIME_TEST_PATHS = []
// Need the built desktop server template; CI runs them by path after build-orcad-template.mjs.
export const TEMPLATE_TEST_PATHS = []
export function nodeServerTestPaths({
artifact = false,
crossRuntime = false,
template = false
} = {}) {
return [
'src/main/persistence/profile-state',
'src/main/persistence/loading-store/profile-writing/profile-state',
'src/main/sqlite',
// The orcad server's identity and stop path, which Windows SSH hosts rely on (W2).
'src/main/orcad/instance-lock/orcad-instance-lock.test.ts',
'src/main/orcad/instance-lock/orcad-process-start-time.test.ts',
'src/main/orcad/host-lifecycle/managed-stop/orcad-managed-stop.test.ts',
// The directory, not a prefix: its siblings are POSIX-host unit tests pr.yml already runs.
'src/main/daemon/pty-subprocess/conpty-startup-input-reader.ts',
'src/main/daemon/pty-subprocess/daemon-pty-physical-owner.ts',
'src/main/daemon/pty-subprocess/foreground-fallback-process.ts',
'src/main/daemon/pty-subprocess/foreground-process-tracker.ts',
'src/main/daemon/pty-subprocess/native-pty-spawn-windows.test.ts',
'src/main/daemon/pty-subprocess/native-pty-spawn.ts',
'src/main/daemon/pty-subprocess/pre-listener-events.ts',
'src/main/daemon/pty-subprocess/pty-shell-foreground-confirmation.ts',
'src/main/daemon/pty-subprocess/shell-launch-plan.ts',
'src/main/daemon/pty-subprocess/spawn-environment.ts',
'src/main/daemon/pty-subprocess/spawn-file-child-processes.ts',
'src/main/daemon/pty-subprocess/spawn-file-foreground-process.ts',
'src/main/daemon/pty-subprocess/spawn-preflight.ts',
'src/main/daemon/pty-subprocess/subprocess-handle.ts',
...(artifact
? [
'tests/e2e/daemon-running-work-probe.unit.test.ts',
'src/shared/terminal/pty/lifecycle/pty-running-work-probe.test.ts',
'src/main/orcad/native-runtime/orcad-packaged-node-pty.integration.test.ts',
'src/main/daemon/pty-subprocess/testing/agent-foreground-process-git-bash.win32.test.ts',
'src/main/orcad/serve-startup/orcad-cli-launcher.integration.test.ts',
'src/main/orcad/runtime-launch/orcad-launcher-isolation.integration.test.ts',
'src/main/orcad/host-lifecycle/managed-stop/orcad-stop-request-shutdown.integration.test.ts',
'src/main/orcad/native-runtime/orcad-windows-conpty-breakaway.integration.test.ts',
'src/main/orcad/testing/serve-lifecycle/orcad-serve-parity.integration.test.ts',
'config/scripts/archives/platform-command/zip-extractor-command.test.mjs'
]
: []),
...(crossRuntime ? CROSS_RUNTIME_TEST_PATHS : []),
...(template ? TEMPLATE_TEST_PATHS : [])
]
}