Skip to content

Commit 17c0878

Browse files
authored
fix: restore service references breaking ci (#16495)
Co-authored-by: maria-rcks <[email protected]>
1 parent ac8e945 commit 17c0878

3 files changed

Lines changed: 7 additions & 3 deletions

File tree

‎apps/desktop/src/preview/Manager.test.ts‎

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
11
import { it as effectIt } from "@effect/vitest";
2+
import * as NodeCrypto from "@effect/platform-node/NodeCrypto";
23
import { DESKTOP_PREVIEW_RECORDING_CAPTURE_TRIGGER } from "@t3tools/contracts";
34
import type {
45
DesktopPreviewRecordingFrame,
@@ -281,6 +282,7 @@ const layer = PreviewManager.layer.pipe(
281282
Layer.provideMerge(layerEnvironment),
282283
Layer.provideMerge(layerFileSystem),
283284
Layer.provideMerge(Path.layer),
285+
Layer.provideMerge(NodeCrypto.layer),
284286
Layer.provideMerge(Layer.succeed(HostProcessPlatform, "darwin")),
285287
);
286288

‎apps/desktop/src/preview/Manager.ts‎

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -37,6 +37,7 @@ import {
3737
import * as Cause from "effect/Cause";
3838
import * as Clock from "effect/Clock";
3939
import * as Context from "effect/Context";
40+
import * as Crypto from "effect/Crypto";
4041
import * as DateTime from "effect/DateTime";
4142
import * as Deferred from "effect/Deferred";
4243
import * as Effect from "effect/Effect";
@@ -547,6 +548,7 @@ const makeNativeOperations = Effect.fn("PreviewManager.makeOperations")(function
547548
const rendererHistory = yield* DesktopRendererHistory.DesktopRendererHistory;
548549
const hostPlatform = yield* HostProcessPlatform;
549550
const path = yield* Path.Path;
551+
const crypto = yield* Crypto.Crypto;
550552
const parentScope = yield* Scope.Scope;
551553
const browserHost = yield* DesktopBrowserHost.DesktopBrowserHost;
552554
const context = yield* Effect.context<never>();

‎apps/server/src/process/externalLauncher.test.ts‎

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1068,7 +1068,7 @@ it.effect.each([
10681068
yield* launcher.launchEditor({ editor, cwd: "/workspace with spaces/file.ts:12:4" });
10691069
}).pipe(
10701070
Effect.provide(
1071-
testLayer({
1071+
layerTest({
10721072
platform: "darwin",
10731073
env: { HOME: home, PATH: path.join(home, "empty") },
10741074
onSpawn: (command) => {
@@ -1111,7 +1111,7 @@ it.effect("matches macOS bundles on the name boundary only", () =>
11111111
return yield* launcher.resolveAvailableEditors();
11121112
}).pipe(
11131113
Effect.provide(
1114-
testLayer({ platform: "darwin", env: { HOME: home, PATH: path.join(home, "bin") } }),
1114+
layerTest({ platform: "darwin", env: { HOME: home, PATH: path.join(home, "bin") } }),
11151115
),
11161116
);
11171117

@@ -1155,7 +1155,7 @@ it.effect("keeps the macOS VS Code Insiders bundle out of stable VS Code", () =>
11551155
return available;
11561156
}).pipe(
11571157
Effect.provide(
1158-
testLayer({
1158+
layerTest({
11591159
platform: "darwin",
11601160
env: { HOME: home, PATH: path.join(home, "empty") },
11611161
onSpawn: (command) => {

0 commit comments

Comments
 (0)