fix: Add missing directory creation and fix regex patterns in roo int…#19
Conversation
…egration tests - Add mkdirSync calls to create .roo/rules directories before writing test files - Import mkdirSync from 'fs' module - Fix regex patterns to use [\s\S]* instead of .* to match across newlines in frontmatter - Fixes ENOENT errors and regex matching failures in roo.test.ts Co-authored-by: John Lindquist <johnlindquist@users.noreply.github.com>
|
Caution Review failedThe pull request is closed. WalkthroughUpdates a single integration test to ensure directories are created before file writes, imports mkdirSync, and loosens regex assertions to match variable frontmatter/content spacing. Adds recursive directory creation for rulesDir and nested dirs, and ensures inputRulesDir exists for roundtrip test setup. Changes
Estimated code review effort🎯 2 (Simple) | ⏱️ ~10 minutes Possibly related PRs
Poem
✨ Finishing touches
🧪 Generate unit tests (beta)
📜 Recent review detailsConfiguration used: CodeRabbit UI Review profile: CHILL Plan: Pro 📒 Files selected for processing (1)
Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out. Comment |
PR Review: Fix roo integration test issuesSummaryThis PR fixes two critical issues in the Roo integration tests:
Code Quality ✅Positive aspects:
Regex improvements:
Potential Issues
|
|
🎉 This PR is included in version 2.8.0 🎉 The release is available on: Your semantic-release bot 📦🚀 |
…egration tests
Summary by CodeRabbit