- Import `VcsProcess` as a namespace in the test - Update layer injection to target `VcsProcess.VcsProcess`
Unified · Split
| @@ -4,9 +4,9 @@ import { Effect, Layer } from "effect"; · 3 unmodified lines | ||
| 4 | 4 | import { describe, expect } from "vitest"; |
| 5 | 5 | |
| 6 | 6 | import { ServerConfig } from "../config.ts"; |
| 7 | −import { VcsProcess } from "./VcsProcess.ts"; | |
| 8 | 7 | import { VcsDriver } from "./VcsDriver.ts"; |
| 9 | 8 | import * as GitVcsDriver from "./GitVcsDriver.ts"; |
| 9 | +import * as VcsProcess from "./VcsProcess.ts"; | |
| 10 | 10 | |
| 11 | 11 | const splitNullSeparatedPaths = (input: string): string[] => |
| 12 | 12 | input |
| @@ -36,7 +36,7 @@ it.layer(Layer.empty)("GitVcsDriver.layer", (it) => { · 23 unmodified lines | ||
| 36 | 36 | Layer.provideMerge(GitVcsDriverTestDependencies), |
| 37 | 37 | Layer.provideMerge(NodeServices.layer), |
| 38 | 38 | Layer.provide( |
| 39 | − Layer.succeed(VcsProcess, { | |
| 39 | + Layer.succeed(VcsProcess.VcsProcess, { | |
| 40 | 40 | run: (input) => { |
| 41 | 41 | expect(input.command).toBe("git"); |
| 42 | 42 | expect(input.args).toEqual([ |
| @@ -85,7 +85,7 @@ it.layer(Layer.empty)("GitVcsDriver.layer", (it) => { · 42 unmodified lines | ||
| 85 | 85 | Layer.provideMerge(GitVcsDriverTestDependencies), |
| 86 | 86 | Layer.provideMerge(NodeServices.layer), |
| 87 | 87 | Layer.provide( |
| 88 | − Layer.succeed(VcsProcess, { | |
| 88 | + Layer.succeed(VcsProcess.VcsProcess, { | |
| 89 | 89 | run: (input) => { |
| 90 | 90 | expect(input.command).toBe("git"); |
| 91 | 91 | expect(input.args).toEqual([ |