mirror of
https://github.com/RooVetGit/Roo-Code.git
synced 2026-09-07 08:26:51 +00:00
fix: resolve Windows path separator issue in historyMigration test
This commit is contained in:
parent
e8bcd37045
commit
b582463e31
1 changed files with 2 additions and 1 deletions
|
|
@ -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 () => {
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue