Skip to content

Commit 3b1cf19

Browse files
committed
test(server): fix GitManager CI fixtures
1 parent 6a3fd0a commit 3b1cf19

1 file changed

Lines changed: 5 additions & 29 deletions

File tree

apps/server/src/git/GitManager.test.ts

Lines changed: 5 additions & 29 deletions
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,7 @@ import { it } from "@effect/vitest";
88
import * as Effect from "effect/Effect";
99
import * as FileSystem from "effect/FileSystem";
1010
import * as Layer from "effect/Layer";
11+
import * as Option from "effect/Option";
1112
import * as PlatformError from "effect/PlatformError";
1213
import * as Scope from "effect/Scope";
1314
import { ChildProcessSpawner } from "effect/unstable/process";
@@ -2217,36 +2218,11 @@ it.layer(GitManagerTestLayer)("GitManager", (it) => {
22172218
ghScenario: {
22182219
prListSequenceByHeadSelector: {
22192220
"octocat:statemachine": [
2220-
JSON.stringify([
2221-
{
2222-
number: 41,
2223-
title: "Ambiguous fork PR",
2224-
url: "https://github.com/pingdotgg/codething-mvp/pull/41",
2225-
baseRefName: "main",
2226-
headRefName: "statemachine",
2227-
state: "OPEN",
2228-
},
2229-
]),
2230-
JSON.stringify([
2231-
{
2232-
number: 142,
2233-
title: "Add stacked git actions",
2234-
url: "https://github.com/pingdotgg/codething-mvp/pull/142",
2235-
baseRefName: "main",
2236-
headRefName: "statemachine",
2237-
state: "OPEN",
2238-
isCrossRepository: true,
2239-
headRepository: {
2240-
nameWithOwner: "octocat/codething-mvp",
2241-
},
2242-
headRepositoryOwner: {
2243-
login: "octocat",
2244-
},
2245-
},
2246-
]),
2221+
`[{"number":41,"title":"Ambiguous fork PR","url":"https://github.com/pingdotgg/codething-mvp/pull/41","baseRefName":"main","headRefName":"statemachine","state":"OPEN"}]`,
2222+
`[{"number":142,"title":"Add stacked git actions","url":"https://github.com/pingdotgg/codething-mvp/pull/142","baseRefName":"main","headRefName":"statemachine","state":"OPEN","isCrossRepository":true,"headRepository":{"nameWithOwner":"octocat/codething-mvp"},"headRepositoryOwner":{"login":"octocat"}}]`,
22472223
],
2248-
"fork-seed:statemachine": [JSON.stringify([])],
2249-
statemachine: [JSON.stringify([])],
2224+
"fork-seed:statemachine": ["[]"],
2225+
statemachine: ["[]"],
22502226
},
22512227
},
22522228
});

0 commit comments

Comments
 (0)