@@ -149,10 +149,9 @@ describe("loadRuleFiles", () => {
149149 } )
150150
151151 const result = await loadRuleFiles ( "/fake/path" )
152- expect ( result ) . toContain ( "# Rules from /fake/path/.roo/rules" )
153- expect ( result ) . toContain ( "# Filename: /fake/path/.roo/rules/file1.txt" )
152+ expect ( result ) . toContain ( "# Rules from /fake/path/.roo/rules/file1.txt:" )
154153 expect ( result ) . toContain ( "content of file1" )
155- expect ( result ) . toContain ( "# Filename: /fake/path/.roo/rules/file2.txt" )
154+ expect ( result ) . toContain ( "# Rules from /fake/path/.roo/rules/file2.txt: " )
156155 expect ( result ) . toContain ( "content of file2" )
157156
158157 expect ( statMock ) . toHaveBeenCalledWith ( "/fake/path/.roo/rules/file1.txt" )
@@ -352,9 +351,9 @@ describe("addCustomInstructions", () => {
352351 )
353352
354353 expect ( result ) . toContain ( "# Rules from /fake/path/.roo/rules-test-mode" )
355- expect ( result ) . toContain ( "# Filename: /fake/path/.roo/rules-test-mode/rule1.txt" )
354+ expect ( result ) . toContain ( "# Rules from /fake/path/.roo/rules-test-mode/rule1.txt: " )
356355 expect ( result ) . toContain ( "mode specific rule 1" )
357- expect ( result ) . toContain ( "# Filename: /fake/path/.roo/rules-test-mode/rule2.txt" )
356+ expect ( result ) . toContain ( "# Rules from /fake/path/.roo/rules-test-mode/rule2.txt: " )
358357 expect ( result ) . toContain ( "mode specific rule 2" )
359358
360359 expect ( statMock ) . toHaveBeenCalledWith ( "/fake/path/.roo/rules-test-mode/rule1.txt" )
@@ -457,7 +456,7 @@ describe("addCustomInstructions", () => {
457456 )
458457
459458 expect ( result ) . toContain ( "# Rules from /fake/path/.roo/rules-test-mode" )
460- expect ( result ) . toContain ( "# Filename: /fake/path/.roo/rules-test-mode/rule1.txt" )
459+ expect ( result ) . toContain ( "# Rules from /fake/path/.roo/rules-test-mode/rule1.txt: " )
461460 expect ( result ) . toContain ( "mode specific rule content" )
462461
463462 expect ( statCallCount ) . toBeGreaterThan ( 0 )
@@ -548,12 +547,11 @@ describe("Rules directory reading", () => {
548547
549548 const result = await loadRuleFiles ( "/fake/path" )
550549
551- expect ( result ) . toContain ( "# Rules from /fake/path/.roo/rules" )
552- expect ( result ) . toContain ( "# Filename: /fake/path/.roo/rules/file1.txt" )
550+ expect ( result ) . toContain ( "# Rules from /fake/path/.roo/rules/file1.txt:" )
553551 expect ( result ) . toContain ( "content of file1" )
554- expect ( result ) . toContain ( "# Filename: /fake/path/.roo/rules/file2.txt" )
552+ expect ( result ) . toContain ( "# Rules from /fake/path/.roo/rules/file2.txt: " )
555553 expect ( result ) . toContain ( "content of file2" )
556- expect ( result ) . toContain ( "# Filename: /fake/path/.roo/rules/file3.txt" )
554+ expect ( result ) . toContain ( "# Rules from /fake/path/.roo/rules/file3.txt: " )
557555 expect ( result ) . toContain ( "content of file3" )
558556 } )
559557
0 commit comments