Files
rea/tests/boundary/process/processHostIdentity.test.ts
T
morluto 63cf28fd8f fix(process): preserve partial evidence and verify detached cleanup (#1011)
* test(ci): allow transport delivery in source identity regression

* fix(process): preserve partial evidence and verify detached cleanup

* fix(process): scope Linux token sweeps by stable process identity

* fix(process): retain environment permission failure codes

* fix(process): wait for signaled processes before verifying cleanup

* fix(process): verify sampled detached groups during cleanup

* fix(electron): preserve prelaunch identities through cleanup

* fix(process): retry growing Darwin process table snapshots

* fix(process): retain compatibility with saved v3 capture evidence

* fix(process): migrate saved v3 captures during reconstruction verification

* fix(process): preserve cancellation during Darwin helper compilation

* fix(process): propagate cancellation through ownership baselines

* perf(javascript): cache canonical export comparison sort keys

* fix(process): cancel provider ownership preparation before spawn

* fix(process): isolate native compiler waiter cancellation
2026-10-08 04:46:46 +08:00

42 lines
1.1 KiB
TypeScript

import { expect, it } from "vitest";
import { parseProcessScenario } from "../../../src/domain/process/processScenario.js";
import {
createRunManifest,
observeLaunchedExecutable,
observeSelectedExecutable,
observeSettlement,
} from "../../../src/process/capture/ProcessCaptureLifecycle.js";
it("uses one selected host identity for manifest and settlement", async () => {
const scenario = parseProcessScenario({
executable: process.execPath,
working_directory: process.cwd(),
events: [],
});
const selectedHost = {
platform: "win32" as const,
architecture: "arm64" as const,
};
const selectedExecutable = await observeSelectedExecutable(
scenario.executable,
);
const manifest = await createRunManifest(
scenario,
new Date(0),
new Date(1),
observeLaunchedExecutable(scenario.executable, selectedExecutable),
selectedHost,
);
const settlement = await observeSettlement(
"run",
[],
0,
() => undefined,
selectedHost.platform,
);
expect(manifest).toMatchObject(selectedHost);
expect(settlement).toEqual({ state: "unverifiable", elapsed_ms: 0 });
});