Skip to content

Commit 552086d

Browse files
committed
test(github-client): use process.cwd() instead of hardcoded repo path
The hardcoded /usr/local/src/... path only exists on the developer machine. CI runs in /home/runner/work/... so the test failed on the v0.2.0 release workflow, aborting the GitHub Packages publish and GitHub Release creation. bun test runs from the repo root, which is a git clone with a GitHub origin — process.cwd() is environment-agnostic and exercises the same git + parse code path.
1 parent 89bb69d commit 552086d

File tree

1 file changed

+3
-4
lines changed

1 file changed

+3
-4
lines changed

src/server/github-client.test.ts

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -111,10 +111,9 @@ describe("parseGitHubRemoteUrl", () => {
111111

112112
describe("resolveLocalRepoRemote", () => {
113113
test("resolves current repo origin", () => {
114-
// This repo has a GitHub origin — exercises the git + parse path
115-
const result = resolveLocalRepoRemote(
116-
"/usr/local/src/com.github/Rethunk-AI/rethunk-github-mcp",
117-
);
114+
// bun test runs from the repo root, which is a git clone with a GitHub
115+
// origin — exercises the full git + parse path.
116+
const result = resolveLocalRepoRemote(process.cwd());
118117
expect(result).toEqual({ owner: "Rethunk-AI", repo: "rethunk-github-mcp" });
119118
});
120119

0 commit comments

Comments
 (0)