Files
orca/config/scripts/node-server/qualification/node-server-test-paths.mjs
T
Neil a16afc4e67 refactor(e2e): group journeys by feature and repair browser recovery (#43628)
* refactor(e2e): group journeys and fixtures by feature ownership

* refactor(e2e): consolidate remaining Playwright owner imports

* test(ci): stop copying retired route modules into fixtures

* fix(browser): preserve one-shot follow intent across equal snapshots

* refactor(settings): colocate commit message defaults with source control

* test(browser): await page registration and focus the concrete page

* fix(browser): keep viewport recovery progressing during incompatible frames

* fix(browser): wait for stale helper exit before replacement commands
2026-11-17 11:44:44 -08:00

54 lines
2.8 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
? [
'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 : [])
]
}