Files
callstack__agent-device/scripts/vitest-apple-runner-host-setup.ts
Michał Pierzchała 9abcd7fe03 refactor: move Apple platform family into package (#2118)
* refactor: move Apple platform family into package

* fix: preserve Apple facade sync contracts

* fix: complete Apple W4 rebase review fixes
2026-08-28 15:25:44 +02:00

17 lines
597 B
TypeScript

import { beforeEach } from 'vitest';
import {
appleRunnerTestHost,
installAppleRunnerTestHost,
loadAppleRunnerHost,
} from '@agent-device/platform-apple/runner/test-host';
// The apple-runner vitest project runs the package's own suites, which cannot
// import root utilities directly (R11). This setup installs the real root host
// capabilities as overridable defaults, so package tests exercise genuine
// retry/lock/exec semantics and stub individual capabilities per test.
installAppleRunnerTestHost(await loadAppleRunnerHost());
beforeEach(() => {
appleRunnerTestHost.reset();
});