Showing the changes to apps/server/src/sourceControl/SourceControlRepositoryService.test.ts (1 of 42 files). Show all
Unified · Split
| @@ -7,7 +7,7 @@ import { ChildProcessSpawner } from "effect/unstable/process"; · 6 unmodified lines | |||
| 7 | 7 | ||
| 8 | import { GitCommandError, type SourceControlProviderError } from "@t3tools/contracts"; | 8 | import { GitCommandError, type SourceControlProviderError } from "@t3tools/contracts"; |
| 9 | 9 | ||
| 10 | import { ServerConfig } from "../config.ts"; | 10 | import * as ServerConfig from "../config.ts"; |
| 11 | import * as GitVcsDriver from "../vcs/GitVcsDriver.ts"; | 11 | import * as GitVcsDriver from "../vcs/GitVcsDriver.ts"; |
| 12 | import type * as SourceControlProvider from "./SourceControlProvider.ts"; | 12 | import type * as SourceControlProvider from "./SourceControlProvider.ts"; |
| 13 | import * as SourceControlProviderRegistry from "./SourceControlProviderRegistry.ts"; | 13 | import * as SourceControlProviderRegistry from "./SourceControlProviderRegistry.ts"; |
| @@ -20,8 +20,8 @@ const CLONE_URLS = { · 6 unmodified lines | |||
| 20 | }; | 20 | }; |
| 21 | 21 | ||
| 22 | function makeProvider( | 22 | function makeProvider( |
| 23 | overrides: Partial<SourceControlProvider.SourceControlProviderShape> = {}, | 23 | overrides: Partial<SourceControlProvider.SourceControlProvider["Service"]> = {}, |
| 24 | ): SourceControlProvider.SourceControlProviderShape { | 24 | ): SourceControlProvider.SourceControlProvider["Service"] { |
| 25 | const unsupported = (operation: string) => | 25 | const unsupported = (operation: string) => |
| 26 | Effect.die(`unexpected provider operation ${operation}`) as Effect.Effect< | 26 | Effect.die(`unexpected provider operation ${operation}`) as Effect.Effect< |
| 27 | never, | 27 | never, |
| @@ -52,8 +52,8 @@ function processOutput(): GitVcsDriver.ExecuteGitResult { · 24 unmodified lines | |||
| 52 | } | 52 | } |
| 53 | 53 | ||
| 54 | function makeLayer(input: { | 54 | function makeLayer(input: { |
| 55 | readonly provider?: SourceControlProvider.SourceControlProviderShape; | 55 | readonly provider?: SourceControlProvider.SourceControlProvider["Service"]; |
| 56 | readonly git?: Partial<GitVcsDriver.GitVcsDriverShape>; | 56 | readonly git?: Partial<GitVcsDriver.GitVcsDriver["Service"]>; |
| 57 | }) { | 57 | }) { |
| 58 | return SourceControlRepositoryService.layer.pipe( | 58 | return SourceControlRepositoryService.layer.pipe( |
| 59 | Layer.provide( | 59 | Layer.provide( |