|
1 | 1 | // @effect-diagnostics nodeBuiltinImport:off -- The process fixture runs real shell commands with isolated config files. |
| 2 | +import * as NodeHttpClient from "@effect/platform-node/NodeHttpClient"; |
2 | 3 | import * as NodeServices from "@effect/platform-node/NodeServices"; |
3 | 4 | import { assert, describe, it } from "@effect/vitest"; |
| 5 | +import * as HostProcess from "@t3tools/shared/HostProcess"; |
| 6 | +import * as NetService from "@t3tools/shared/Net"; |
| 7 | +import { SshCommandError } from "@t3tools/ssh/errors"; |
4 | 8 | import * as Effect from "effect/Effect"; |
| 9 | +import * as FileSystem from "effect/FileSystem"; |
5 | 10 | import * as Layer from "effect/Layer"; |
6 | 11 | import * as Logger from "effect/Logger"; |
| 12 | +import * as Path from "effect/Path"; |
7 | 13 | import * as PlatformError from "effect/PlatformError"; |
8 | | -import * as Sink from "effect/Sink"; |
9 | | -import * as Stream from "effect/Stream"; |
10 | 14 | import * as ChildProcess from "effect/process/ChildProcess"; |
11 | 15 | import * as ChildProcessSpawner from "effect/process/ChildProcessSpawner"; |
| 16 | +import * as Sink from "effect/Sink"; |
| 17 | +import * as Stream from "effect/Stream"; |
12 | 18 | import * as TestClock from "effect/testing/TestClock"; |
13 | 19 | import * as NodeOS from "node:os"; |
14 | 20 | import { vi } from "vite-plus/test"; |
15 | 21 |
|
16 | | -import * as DesktopEnvironment from "../app/DesktopEnvironment.ts"; |
17 | | -import * as DesktopShellEnvironment from "./DesktopShellEnvironment.ts"; |
18 | | - |
19 | | -import * as NodeHttpClient from "@effect/platform-node/NodeHttpClient"; |
20 | | -import * as HostProcess from "@t3tools/shared/HostProcess"; |
21 | | -import * as NetService from "@t3tools/shared/Net"; |
22 | | -import { SshCommandError } from "@t3tools/ssh/errors"; |
23 | | -import * as FileSystem from "effect/FileSystem"; |
24 | | -import * as Path from "effect/Path"; |
25 | 22 | import * as DesktopConfig from "../app/DesktopConfig.ts"; |
| 23 | +import * as DesktopEnvironment from "../app/DesktopEnvironment.ts"; |
26 | 24 | import * as DesktopSshEnvironment from "../ssh/DesktopSshEnvironment.ts"; |
27 | 25 | import * as DesktopSshPasswordPrompts from "../ssh/DesktopSshPasswordPrompts.ts"; |
| 26 | +import * as DesktopShellEnvironment from "./DesktopShellEnvironment.ts"; |
28 | 27 |
|
29 | 28 | vi.mock("node:os", { spy: true }); |
30 | 29 |
|
@@ -109,9 +108,7 @@ function runShellEnvironment(input: { |
109 | 108 | const program = Effect.gen(function* () { |
110 | 109 | const shellEnvironment = yield* DesktopShellEnvironment.DesktopShellEnvironment; |
111 | 110 | const prepared = yield* shellEnvironment.installIntoProcess; |
112 | | - if (prepared || input.platform === "win32") { |
113 | | - assert.equal(yield* shellEnvironment.installIntoProcess, prepared); |
114 | | - } |
| 111 | + assert.equal(yield* shellEnvironment.installIntoProcess, prepared); |
115 | 112 | if (input.exercise) yield* input.exercise(shellEnvironment); |
116 | 113 | return prepared; |
117 | 114 | }).pipe( |
|
0 commit comments