Skip to content

Commit d6da29a

Browse files
test(provider-acp): read the host platform through HostProcess
The lint rule no-global-process-runtime rejects process.platform. Co-Authored-By: Claude Opus 5.5 <[email protected]>
1 parent 1eb8384 commit d6da29a

1 file changed

Lines changed: 2 additions & 1 deletion

File tree

‎packages/provider-acp/src/server/clientTerminals.test.ts‎

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,7 @@ import * as NodeServices from "@effect/platform-node/NodeServices";
22
import { describe, expect, it } from "@effect/vitest";
33
import * as Effect from "effect/Effect";
44
import * as Result from "effect/Result";
5+
import * as HostProcess from "@t3tools/shared/HostProcess";
56

67
import {
78
makeAcpClientTerminals,
@@ -127,7 +128,7 @@ describe("AcpClientTerminals", () => {
127128
});
128129
expect(exit.exitCode === 0 ? null : exit.exitCode).not.toBe(0);
129130
// Windows has no signals: a killed process only reports an exit code.
130-
if (process.platform === "win32") {
131+
if (yield* HostProcess.isWindows) {
131132
expect(exit.signal).toBeNull();
132133
} else {
133134
expect(exit.signal).toBe("SIGTERM");

0 commit comments

Comments
 (0)