Skip to content

Commit 8d92b9f

Browse files
test(server): isolate checkout configuration regressions
1 parent 269c879 commit 8d92b9f

1 file changed

Lines changed: 6 additions & 1 deletion

File tree

‎apps/server/src/vcs/WorktreeClone.test.ts‎

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
import * as NodeServices from "@effect/platform-node/NodeServices";
2-
import { assert, describe, it } from "@effect/vitest";
2+
import { afterAll, assert, beforeAll, describe, it, vi } from "@effect/vitest";
33
import { HostProcessPlatform } from "@t3tools/shared/hostProcess";
44
import * as Effect from "effect/Effect";
55
import * as FileSystem from "effect/FileSystem";
@@ -14,6 +14,11 @@ import { makeWorktreeDependencies } from "./WorktreeDependencies.ts";
1414
import { makeWorktreeClone } from "./WorktreeClone.ts";
1515
import * as GitVcsDriver from "./GitVcsDriver.ts";
1616

17+
// These tests deliberately vary repository config; suite-wide environment
18+
// overrides would otherwise mask core.autocrlf and core.filemode regressions.
19+
beforeAll(() => vi.stubEnv("GIT_CONFIG_COUNT", "0"));
20+
afterAll(() => vi.unstubAllEnvs());
21+
1722
const encodeProject = Schema.encodeSync(Schema.fromJsonString(T3ProjectFile));
1823

1924
const TestLayer = GitVcsDriver.layer.pipe(

0 commit comments

Comments
 (0)