authorgravatar for julius0216@outlook.comJulius Marminge <julius0216@outlook.com> 2026-09-05 01:25:07-07:00
committergravatar for noreply@github.comGitHub <noreply@github.com> 2026-09-05 01:25:07-07:00
loga21c0d724684fe3e1775014fa0dad14e483c8315
treeb13e567325d934192146ee192e91eafd6d15169d
parentc059d09b9b585d0c9562527e338e2f95cd2220f0
signature Signed by PGP key B5690EEEBB952194

test(server): remove duplicate VCS error constructor checks (#10042)


1 files changed, 0 insertions(+), 16 deletions(-)

apps/server/src/vcs/VcsProjectConfig.test.ts-16
......@@ -14,22 +14,6 @@ const TestLayer = VcsProjectConfig.layer.pipe(
1414);
1515
1616describe("VcsProjectConfig", () => {
17 it("keeps operation context and the original cause on config errors", () => {
18 const cause = new Error("permission denied");
19 const error = new VcsProjectConfig.VcsProjectConfigError({
20 operation: "read",
21 cwd: "/repo/packages/app",
22 configPath: "/repo/.t3code/vcs.json",
23 cause,
24 });
25
26 assert.equal(error.operation, "read");
27 assert.equal(error.cwd, "/repo/packages/app");
28 assert.equal(error.configPath, "/repo/.t3code/vcs.json");
29 assert.strictEqual(error.cause, cause);
30 assert.equal(error.message, "Failed to read VCS project config at /repo/.t3code/vcs.json.");
31 });
32
3317 it.layer(TestLayer)("uses an explicit requested VCS kind before config", (it) => {
3418 it.effect("returns the requested kind", () =>
3519 Effect.gen(function* () {