Skip to content

Commit f3143a8

Browse files
committed
Fix: skip test execution in CI environment
1 parent 3820ef0 commit f3143a8

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

packages/core/test/git.worktree.test.ts

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -14,8 +14,6 @@ describe("git worktree", () => {
1414
let testDir: string;
1515
let worktreePath: string;
1616

17-
if (isCI) return;
18-
1917
beforeAll(async () => {
2018
// Initialize test host for the GenAIScript runtime
2119
TestHost.install();
@@ -56,6 +54,7 @@ describe("git worktree", () => {
5654
});
5755

5856
test("should list existing worktrees", async () => {
57+
if (isCI) return;
5958
const worktrees = await gitClient.listWorktrees();
6059
expect(Array.isArray(worktrees)).toBe(true);
6160

@@ -67,6 +66,7 @@ describe("git worktree", () => {
6766
});
6867

6968
test("should add and remove a worktree", async () => {
69+
if (isCI) return;
7070
// Use main branch instead of current branch to avoid conflicts
7171
const mainBranch = "origin/test-ignore";
7272

@@ -90,6 +90,7 @@ describe("git worktree", () => {
9090
});
9191

9292
test("should add worktree with branch option", async () => {
93+
if (isCI) return;
9394
const newBranchName = `test-worktree-branch-${Date.now()}`;
9495

9596
try {

0 commit comments

Comments
 (0)