- 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
Showing the changes to apps/server/src/sourceControl/SourceControlProviderRegistry.test.ts (1 of 9 files). Show all
Unified · Split
| @@ -1,5 +1,6 @@ | ||
| 1 | 1 | import { assert, it } from "@effect/vitest"; |
| 2 | 2 | import { Effect, Layer } from "effect"; |
| 3 | +import { ChildProcessSpawner } from "effect/unstable/process"; | |
| 3 | 4 | |
| 4 | 5 | import { GitHubCli } from "./GitHubCli.ts"; |
| 5 | 6 | import * as GitVcsDriver from "../vcs/GitVcsDriver.ts"; |
| @@ -8,9 +9,7 @@ import * as SourceControlProviderRegistry from "./SourceControlProviderRegistry. · 2 unmodified lines | ||
| 8 | 9 | const processResult = (stdout: string) => ({ |
| 9 | 10 | stdout, |
| 10 | 11 | stderr: "", |
| 11 | − code: 0, | |
| 12 | − signal: null, | |
| 13 | − timedOut: false, | |
| 12 | + exitCode: ChildProcessSpawner.ExitCode(0), | |
| 14 | 13 | stdoutTruncated: false, |
| 15 | 14 | stderrTruncated: false, |
| 16 | 15 | }); |