Skip to content

Commit 30a1fee

Browse files
committed
fix: allow the test to pass on windows by using the path module
1 parent 1875137 commit 30a1fee

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/core/prompts/sections/__tests__/custom-system-prompt.test.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
// src/core/prompts/sections/__tests__/custom-system-prompt.test.ts
1+
import path from "path"
22
import { readFile } from "fs/promises"
33
import { Mode } from "../../../../shared/modes" // Adjusted import path
44
import { loadSystemPromptFile, PromptVariables } from "../custom-system-prompt"
@@ -17,7 +17,7 @@ describe("loadSystemPromptFile", () => {
1717
const mockCwd = "/mock/cwd"
1818
const mockMode: Mode = "test" // Use Mode type, e.g., 'test'
1919
// Corrected expected file path format
20-
const expectedFilePath = `${mockCwd}/.roo/system-prompt-${mockMode}`
20+
const expectedFilePath = path.join(mockCwd, ".roo", `system-prompt-${mockMode}`)
2121

2222
beforeEach(() => {
2323
// Clear mocks before each test

0 commit comments

Comments
 (0)