From e78b53375576af7908f4a84c454f8277c25eafbd Mon Sep 17 00:00:00 2001 From: Mohamed Boudra Date: Thu, 16 Jul 2026 14:06:05 +0000 Subject: [PATCH] test(projects): accept Windows aliases for repaired roots --- packages/server/src/server/paseo-worktree-service.test.ts | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/packages/server/src/server/paseo-worktree-service.test.ts b/packages/server/src/server/paseo-worktree-service.test.ts index b77bfeb7f..0ac2dcb9f 100644 --- a/packages/server/src/server/paseo-worktree-service.test.ts +++ b/packages/server/src/server/paseo-worktree-service.test.ts @@ -20,7 +20,7 @@ import { readPaseoWorktreeMetadata } from "../utils/worktree-metadata.js"; import { createWorktree } from "../utils/worktree.js"; import { isPlatform } from "../test-utils/platform.js"; import { existsSync } from "node:fs"; -import { areEquivalentPaths } from "../utils/path.js"; +import { areEquivalentPaths, createRealpathAwarePathMatcher } from "../utils/path.js"; const cleanupPaths: string[] = []; @@ -104,7 +104,7 @@ test("repairs a legacy source workspace whose project record is missing", async kind: "git", archivedAt: null, }); - expect(areEquivalentPaths(repairedProject?.rootPath ?? "", repoDir)).toBe(true); + expect(createRealpathAwarePathMatcher(repoDir)(repairedProject?.rootPath ?? "")).toBe(true); }); test("registers a new worktree in the existing root project after the main checkout workspace is removed", async () => {