From b582463e31a5f5c98698ae30ff905d9f1577bf11 Mon Sep 17 00:00:00 2001 From: Roo Code Date: Wed, 30 Jul 2025 01:58:33 +0000 Subject: [PATCH] fix: resolve Windows path separator issue in historyMigration test --- src/utils/__tests__/historyMigration.spec.ts | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/utils/__tests__/historyMigration.spec.ts b/src/utils/__tests__/historyMigration.spec.ts index bfce3d0f42..4c2875b3be 100644 --- a/src/utils/__tests__/historyMigration.spec.ts +++ b/src/utils/__tests__/historyMigration.spec.ts @@ -1,4 +1,5 @@ import { describe, it, expect, vi, beforeEach, afterEach } from "vitest" +import path from "path" import { migrateTasksToWorkspaceStructure, isMigrationNeeded } from "../historyMigration" // Mock dependencies @@ -42,7 +43,7 @@ describe("historyMigration", () => { const result = await isMigrationNeeded("/test/storage") expect(result).toBe(false) - expect(mockFileExistsAtPath).toHaveBeenCalledWith("/test/storage/tasks") + expect(mockFileExistsAtPath).toHaveBeenCalledWith(path.join("/test/storage", "tasks")) }) it("should return false when old tasks directory exists but is empty", async () => {