History

Refactor VCS layers into top-level modules

- Move VcsDriver and VcsProcess out of nested service/layer paths - Update server, workspace, orchestration, and tests to use new exports - Rename layer exports to `layer` for consistency

Julius Marminge committed 6 months ago

Commit 69b07771 parent 3364f1f19 files · +92 −98Browse files

Showing the changes to apps/server/src/workspace/Layers/WorkspaceFileSystem.test.ts (1 of 19 files). Show all

Unified · Split

apps/server/src/workspace/Layers/WorkspaceFileSystem.test.ts+3−3
@@ -3,8 +3,8 @@ import { it, describe, expect } from "@effect/vitest"; · 2 unmodified lines
33 import { Effect, FileSystem, Layer, Path } from "effect";
44
55 import { ServerConfig } from "../../config.ts";
6−import { GitVcsDriverLive } from "../../vcs/Layers/GitVcsDriver.ts";
7−import { VcsProcessLive } from "../../vcs/Layers/VcsProcess.ts";
6+import { layer as GitVcsDriverLayer } from "../../vcs/GitVcsDriver.ts";
7+import { layer as VcsProcessLayer } from "../../vcs/VcsProcess.ts";
88 import { WorkspaceEntries } from "../Services/WorkspaceEntries.ts";
99 import { WorkspaceFileSystem } from "../Services/WorkspaceFileSystem.ts";
1010 import { WorkspaceEntriesLive } from "./WorkspaceEntries.ts";
@@ -20,7 +20,7 @@ const TestLayer = Layer.empty.pipe( · 9 unmodified lines
2020 Layer.provideMerge(ProjectLayer),
2121 Layer.provideMerge(WorkspaceEntriesLive.pipe(Layer.provide(WorkspacePathsLive))),
2222 Layer.provideMerge(WorkspacePathsLive),
23− Layer.provideMerge(GitVcsDriverLive.pipe(Layer.provide(VcsProcessLive))),
23+ Layer.provideMerge(GitVcsDriverLayer.pipe(Layer.provide(VcsProcessLayer))),
2424 Layer.provide(
2525 ServerConfig.layerTest(process.cwd(), {
2626 prefix: "t3-workspace-files-test-",

Keyboard shortcuts

General

Show keyboard shortcuts
?
Focus the current search
/

Issues and pull requests

Open filters
f

Issues, pull requests and Inbox

Select next item
j↓
Select previous item
k↑
Open selected item
Enter
Dismiss filters or clear selection
Esc

Repository code

Go to file
t