diff --git a/apps/desktop/src/preview/Manager.test.ts b/apps/desktop/src/preview/Manager.test.ts index b28289e5924a..7d227a9e8e42 100644 --- a/apps/desktop/src/preview/Manager.test.ts +++ b/apps/desktop/src/preview/Manager.test.ts @@ -1,4 +1,5 @@ import { it as effectIt } from "@effect/vitest"; +import * as NodeCrypto from "@effect/platform-node/NodeCrypto"; import { DESKTOP_PREVIEW_RECORDING_CAPTURE_TRIGGER } from "@t3tools/contracts"; import type { DesktopPreviewRecordingFrame, @@ -281,6 +282,7 @@ const layer = PreviewManager.layer.pipe( Layer.provideMerge(layerEnvironment), Layer.provideMerge(layerFileSystem), Layer.provideMerge(Path.layer), + Layer.provideMerge(NodeCrypto.layer), Layer.provideMerge(Layer.succeed(HostProcessPlatform, "darwin")), ); diff --git a/apps/desktop/src/preview/Manager.ts b/apps/desktop/src/preview/Manager.ts index da849e5ac582..9c797d2a4daa 100644 --- a/apps/desktop/src/preview/Manager.ts +++ b/apps/desktop/src/preview/Manager.ts @@ -37,6 +37,7 @@ import { import * as Cause from "effect/Cause"; import * as Clock from "effect/Clock"; import * as Context from "effect/Context"; +import * as Crypto from "effect/Crypto"; import * as DateTime from "effect/DateTime"; import * as Deferred from "effect/Deferred"; import * as Effect from "effect/Effect"; @@ -547,6 +548,7 @@ const makeNativeOperations = Effect.fn("PreviewManager.makeOperations")(function const rendererHistory = yield* DesktopRendererHistory.DesktopRendererHistory; const hostPlatform = yield* HostProcessPlatform; const path = yield* Path.Path; + const crypto = yield* Crypto.Crypto; const parentScope = yield* Scope.Scope; const browserHost = yield* DesktopBrowserHost.DesktopBrowserHost; const context = yield* Effect.context(); diff --git a/apps/server/src/process/externalLauncher.test.ts b/apps/server/src/process/externalLauncher.test.ts index 774346b96fbd..cd83cad6e968 100644 --- a/apps/server/src/process/externalLauncher.test.ts +++ b/apps/server/src/process/externalLauncher.test.ts @@ -1068,7 +1068,7 @@ it.effect.each([ yield* launcher.launchEditor({ editor, cwd: "/workspace with spaces/file.ts:12:4" }); }).pipe( Effect.provide( - testLayer({ + layerTest({ platform: "darwin", env: { HOME: home, PATH: path.join(home, "empty") }, onSpawn: (command) => { @@ -1111,7 +1111,7 @@ it.effect("matches macOS bundles on the name boundary only", () => return yield* launcher.resolveAvailableEditors(); }).pipe( Effect.provide( - testLayer({ platform: "darwin", env: { HOME: home, PATH: path.join(home, "bin") } }), + layerTest({ platform: "darwin", env: { HOME: home, PATH: path.join(home, "bin") } }), ), ); @@ -1155,7 +1155,7 @@ it.effect("keeps the macOS VS Code Insiders bundle out of stable VS Code", () => return available; }).pipe( Effect.provide( - testLayer({ + layerTest({ platform: "darwin", env: { HOME: home, PATH: path.join(home, "empty") }, onSpawn: (command) => {