Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 3 additions & 2 deletions test/integration/roo.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -123,7 +123,8 @@ Sensitive information.`)

// Check public file
const publicContent = readFileSync(join(outputRulesDir, 'exported-public.md'), 'utf-8')
expect(publicContent).toMatch(/^---[\s\S]*alwaysApply: true[\s\S]*description: Exported public rule[\s\S]*---\n\n# Exported Public Content/)
expect(publicContent).toMatch(/^---[\s\S]*alwaysApply: true[\s\S]*---\n# Exported Public Content/)
expect(publicContent).toMatch(/^---[\s\S]*description: Exported public rule[\s\S]*---/)
expect(publicContent).toContain('Follow best practices.')

// Check nested private
Expand Down Expand Up @@ -201,7 +202,7 @@ This should be preserved after import/export.`)
expect(readdirSync(rooDir)).toContain('cli-test.md')

const content = readFileSync(join(rooDir, 'cli-test.md'), 'utf-8')
expect(content).toMatch(/^---[\s\S]*alwaysApply: true[\s\S]*---\n\n# CLI Test Content/)
expect(content).toMatch(/^---[\s\S]*alwaysApply: true[\s\S]*---\n# CLI Test Content/)
})

it('handles private rules correctly in export (excludes by default)', () => {
Expand Down