History

Add VCS driver registry for pluggable git integration

- Route checkpointing and workspace services through a VCS driver registry - Split git driver construction from the driver service wrapper - Update tests and harnesses to mock the registry instead of the raw driver

Julius Marminge committed 6 months ago

Commit e01c92f1 parent a11d6b911 files · +236 −42Browse files

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

Unified · Split

apps/server/src/workspace/Layers/WorkspaceFileSystem.test.ts+2−2
@@ -3,7 +3,7 @@ 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 * as GitVcsDriver from "../../vcs/GitVcsDriver.ts";
6+import * as VcsDriverRegistry from "../../vcs/VcsDriverRegistry.ts";
77 import * as VcsProcess from "../../vcs/VcsProcess.ts";
88 import { WorkspaceEntries } from "../Services/WorkspaceEntries.ts";
99 import { WorkspaceFileSystem } from "../Services/WorkspaceFileSystem.ts";
@@ -20,7 +20,7 @@ const TestLayer = Layer.empty.pipe( · 10 unmodified lines
2020 Layer.provideMerge(ProjectLayer),
2121 Layer.provideMerge(WorkspaceEntriesLive.pipe(Layer.provide(WorkspacePathsLive))),
2222 Layer.provideMerge(WorkspacePathsLive),
23− Layer.provideMerge(GitVcsDriver.vcsLayer.pipe(Layer.provide(VcsProcess.layer))),
23+ Layer.provideMerge(VcsDriverRegistry.layer.pipe(Layer.provide(VcsProcess.layer))),
2424 Layer.provide(
2525 ServerConfig.layerTest(process.cwd(), {
2626 prefix: "t3-workspace-files-test-",