History

Fix GitVcsDriver test dependency import

- Import `VcsProcess` as a namespace in the test - Update layer injection to target `VcsProcess.VcsProcess`

Julius Marminge committed 6 months ago

Commit 0b0d98c1 parent ecac3ac1 file · +3 −3Browse files

Unified · Split

apps/server/src/vcs/GitVcsDriver.test.ts+3−3
@@ -4,9 +4,9 @@ import { Effect, Layer } from "effect"; · 3 unmodified lines
44 import { describe, expect } from "vitest";
55
66 import { ServerConfig } from "../config.ts";
7−import { VcsProcess } from "./VcsProcess.ts";
87 import { VcsDriver } from "./VcsDriver.ts";
98 import * as GitVcsDriver from "./GitVcsDriver.ts";
9+import * as VcsProcess from "./VcsProcess.ts";
1010
1111 const splitNullSeparatedPaths = (input: string): string[] =>
1212 input
@@ -36,7 +36,7 @@ it.layer(Layer.empty)("GitVcsDriver.layer", (it) => { · 23 unmodified lines
3636 Layer.provideMerge(GitVcsDriverTestDependencies),
3737 Layer.provideMerge(NodeServices.layer),
3838 Layer.provide(
39− Layer.succeed(VcsProcess, {
39+ Layer.succeed(VcsProcess.VcsProcess, {
4040 run: (input) => {
4141 expect(input.command).toBe("git");
4242 expect(input.args).toEqual([
@@ -85,7 +85,7 @@ it.layer(Layer.empty)("GitVcsDriver.layer", (it) => { · 42 unmodified lines
8585 Layer.provideMerge(GitVcsDriverTestDependencies),
8686 Layer.provideMerge(NodeServices.layer),
8787 Layer.provide(
88− Layer.succeed(VcsProcess, {
88+ Layer.succeed(VcsProcess.VcsProcess, {
8989 run: (input) => {
9090 expect(input.command).toBe("git");
9191 expect(input.args).toEqual([