History

Use typed exit codes in VCS process results

- Switch VCS process and git driver results to `ChildProcessSpawner.ExitCode` - Update status checks and fallback results to use the new typed exit code - Refresh tests to match the new result shape

Julius Marminge committed 6 months ago

Commit 0587d8a1 parent 68df27e9 files · +62 −41Browse files

Showing the changes to apps/server/src/sourceControl/SourceControlProviderRegistry.test.ts (1 of 9 files). Show all

Unified · Split

apps/server/src/sourceControl/SourceControlProviderRegistry.test.ts+2−3
@@ -1,5 +1,6 @@
11 import { assert, it } from "@effect/vitest";
22 import { Effect, Layer } from "effect";
3+import { ChildProcessSpawner } from "effect/unstable/process";
34
45 import { GitHubCli } from "./GitHubCli.ts";
56 import * as GitVcsDriver from "../vcs/GitVcsDriver.ts";
@@ -8,9 +9,7 @@ import * as SourceControlProviderRegistry from "./SourceControlProviderRegistry. · 2 unmodified lines
89 const processResult = (stdout: string) => ({
910 stdout,
1011 stderr: "",
11− code: 0,
12− signal: null,
13− timedOut: false,
12+ exitCode: ChildProcessSpawner.ExitCode(0),
1413 stdoutTruncated: false,
1514 stderrTruncated: false,
1615 });