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

This commit is contained in:
Julius Marminge authored and GitHub committed 2026-09-05 01:25:07 -07:00
1 parent c059d09b9b
commit a21c0d7246
1 file changed
-16
@@ -14,22 +14,6 @@ const TestLayer = VcsProjectConfig.layer.pipe(
);
describe("VcsProjectConfig", () => {
it("keeps operation context and the original cause on config errors", () => {
const cause = new Error("permission denied");
const error = new VcsProjectConfig.VcsProjectConfigError({
operation: "read",
cwd: "/repo/packages/app",
configPath: "/repo/.t3code/vcs.json",
cause,
});
assert.equal(error.operation, "read");
assert.equal(error.cwd, "/repo/packages/app");
assert.equal(error.configPath, "/repo/.t3code/vcs.json");
assert.strictEqual(error.cause, cause);
assert.equal(error.message, "Failed to read VCS project config at /repo/.t3code/vcs.json.");
});
it.layer(TestLayer)("uses an explicit requested VCS kind before config", (it) => {
it.effect("returns the requested kind", () =>
Effect.gen(function* () {