- Switch GitVcsDriver and VcsProcess usages to namespace imports - Update server and integration wiring to use `.layer` consistently - Keep test type annotations aligned with the exported service types
Showing the changes to apps/server/src/workspace/Layers/WorkspaceFileSystem.test.ts (1 of 8 files). Show all
Unified · Split
| @@ -3,8 +3,8 @@ import { it, describe, expect } from "@effect/vitest"; · 2 unmodified lines | ||
| 3 | 3 | import { Effect, FileSystem, Layer, Path } from "effect"; |
| 4 | 4 | |
| 5 | 5 | import { ServerConfig } from "../../config.ts"; |
| 6 | −import { layer as GitVcsDriverLayer } from "../../vcs/GitVcsDriver.ts"; | |
| 7 | −import { layer as VcsProcessLayer } from "../../vcs/VcsProcess.ts"; | |
| 6 | +import * as GitVcsDriver from "../../vcs/GitVcsDriver.ts"; | |
| 7 | +import * as VcsProcess from "../../vcs/VcsProcess.ts"; | |
| 8 | 8 | import { WorkspaceEntries } from "../Services/WorkspaceEntries.ts"; |
| 9 | 9 | import { WorkspaceFileSystem } from "../Services/WorkspaceFileSystem.ts"; |
| 10 | 10 | import { WorkspaceEntriesLive } from "./WorkspaceEntries.ts"; |
| @@ -20,7 +20,7 @@ const TestLayer = Layer.empty.pipe( · 9 unmodified lines | ||
| 20 | 20 | Layer.provideMerge(ProjectLayer), |
| 21 | 21 | Layer.provideMerge(WorkspaceEntriesLive.pipe(Layer.provide(WorkspacePathsLive))), |
| 22 | 22 | Layer.provideMerge(WorkspacePathsLive), |
| 23 | − Layer.provideMerge(GitVcsDriverLayer.pipe(Layer.provide(VcsProcessLayer))), | |
| 23 | + Layer.provideMerge(GitVcsDriver.layer.pipe(Layer.provide(VcsProcess.layer))), | |
| 24 | 24 | Layer.provide( |
| 25 | 25 | ServerConfig.layerTest(process.cwd(), { |
| 26 | 26 | prefix: "t3-workspace-files-test-", |