Skip to content
Source
Sign inSign up
pingdotgg/t3code

refactor(server): import service modules as namespaces, not aliased layers #16267

Mergedjuliusmarmingemerged 1 commit intomain fromrefs/pull/16267/headmerged by juliusmarminge View on GitHub

Showing 3 changed files with 10 additions and 14 deletions (loading 1).

x
0 of 3 viewed, 3 left
7 additions and 8 deletionsapps/server/src/orchestration-v2/CheckpointRestoreSafety.test.tsModified
View file
@@ -16,13 +16,10 @@
import * as Option from "effect/Option";
import * as Path from "effect/Path";
import { symlinksSupported } from "@t3tools/shared/testing/symlinks";
-import {
- CheckpointRollbackServiceV2,
- layer as rollbackLayer,
-} from "./CheckpointRollbackService.ts";
+import * as CheckpointRollbackService from "./CheckpointRollbackService.ts";
import { CheckpointServiceV2 } from "./CheckpointService.ts";
import { EventSinkV2 } from "./EventSink.ts";
-import { layer as idAllocatorLayer } from "./IdAllocator.ts";
+import * as IdAllocator from "./IdAllocator.ts";
import { ProjectionStoreV2 } from "./ProjectionStore.ts";
import * as ProjectStore from "./ProjectStore.ts";
import { ProviderSessionManagerV2 } from "./ProviderSessionManager.ts";
@@ -101,11 +98,11 @@
checkpointScopes: [{ id: scopeId, cwd }],
runs: [{ id: "later-run", ordinal: 1, status: "completed", rootNodeId: null }],
} as unknown as OrchestrationV2ThreadProjection;
- const testLayer = rollbackLayer.pipe(
+ const testLayer = CheckpointRollbackService.layer.pipe(
Layer.provide(
Layer.mergeAll(
NodeServices.layer,
- idAllocatorLayer,
+ IdAllocator.layer,
Layer.mock(ProjectStore.ProjectStoreV2)({
get: () => Effect.succeed(Option.some({ workspaceRoot: parent } as never)),