Fix GitVcsDriver test dependency import

- Import `VcsProcess` as a namespace in the test
- Update layer injection to target `VcsProcess.VcsProcess`
This commit is contained in:
Julius Marminge committed 2026-05-02 00:02:06 -07:00
1 parent ecac3ac795
commit 0b0d98c1fd
1 file changed
+3 -3
+3 -3
View File
@@ -4,9 +4,9 @@ import { Effect, Layer } from "effect";
import { describe, expect } from "vitest";
import { ServerConfig } from "../config.ts";
import { VcsProcess } from "./VcsProcess.ts";
import { VcsDriver } from "./VcsDriver.ts";
import * as GitVcsDriver from "./GitVcsDriver.ts";
import * as VcsProcess from "./VcsProcess.ts";
const splitNullSeparatedPaths = (input: string): string[] =>
input
@@ -36,7 +36,7 @@ it.layer(Layer.empty)("GitVcsDriver.layer", (it) => {
Layer.provideMerge(GitVcsDriverTestDependencies),
Layer.provideMerge(NodeServices.layer),
Layer.provide(
Layer.succeed(VcsProcess, {
Layer.succeed(VcsProcess.VcsProcess, {
run: (input) => {
expect(input.command).toBe("git");
expect(input.args).toEqual([
@@ -85,7 +85,7 @@ it.layer(Layer.empty)("GitVcsDriver.layer", (it) => {
Layer.provideMerge(GitVcsDriverTestDependencies),
Layer.provideMerge(NodeServices.layer),
Layer.provide(
Layer.succeed(VcsProcess, {
Layer.succeed(VcsProcess.VcsProcess, {
run: (input) => {
expect(input.command).toBe("git");
expect(input.args).toEqual([