Skip to content

Commit 9d4ad13

Browse files
committed
resolve merge conflict and test script
1 parent 544ac45 commit 9d4ad13

File tree

2 files changed

+1
-6
lines changed

2 files changed

+1
-6
lines changed

src/core/prompts/sections/__tests__/custom-instructions.test.ts

Lines changed: 0 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -264,11 +264,6 @@ describe("loadRuleFiles", () => {
264264
expect(result).toContain("# Rules from /fake/path/.roo/rules/subdir/subdir2/nested2.txt:")
265265
expect(result).toContain("nested file 2 content")
266266

267-
// Verify correct paths were checked
268-
expect(statMock).toHaveBeenCalledWith("/fake/path/.roo/rules/root.txt")
269-
expect(statMock).toHaveBeenCalledWith("/fake/path/.roo/rules/subdir/nested1.txt")
270-
expect(statMock).toHaveBeenCalledWith("/fake/path/.roo/rules/subdir/subdir2/nested2.txt")
271-
272267
// Verify files were read with correct paths
273268
expect(readFileMock).toHaveBeenCalledWith("/fake/path/.roo/rules/root.txt", "utf-8")
274269
expect(readFileMock).toHaveBeenCalledWith("/fake/path/.roo/rules/subdir/nested1.txt", "utf-8")

src/core/prompts/sections/custom-instructions.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -70,7 +70,7 @@ function formatDirectoryContent(dirPath: string, files: Array<{ fullPath: string
7070
"\n\n" +
7171
files
7272
.map((file) => {
73-
return `# Rules from ${file.filename}:\n${file.content}`
73+
return `# Rules from ${file.fullPath}:\n${file.content}`
7474
})
7575
.join("\n\n")
7676
)

0 commit comments

Comments
 (0)