test: add unit tests for no-consecutive-headings custom markdownlint rule#5838
test: add unit tests for no-consecutive-headings custom markdownlint rule#5838Hesara2003 wants to merge 1 commit intowso2:masterfrom
Conversation
WalkthroughIntroduces a comprehensive unit test suite for the no-consecutive-headings markdownlint rule, covering rule metadata validation, valid cases with separated headings, invalid cases detecting consecutive headings, and edge cases with assertions for error messages and line numbers. Changes
Estimated code review effort🎯 2 (Simple) | ⏱️ ~12 minutes Poem
🚥 Pre-merge checks | ✅ 1 | ❌ 2❌ Failed checks (1 warning, 1 inconclusive)
✅ Passed checks (1 passed)
✏️ Tip: You can configure your own custom pre-merge checks in the settings. ✨ Finishing touches
📜 Recent review detailsConfiguration used: Organization UI Review profile: CHILL Plan: Pro 📒 Files selected for processing (1)
🔇 Additional comments (9)
✏️ Tip: You can disable this entire section by setting 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 |
Description
Adds unit tests for the custom
no-consecutive-headingsmarkdownlint rule which previously had no test coverage.Changes
assertmodule (no external dependencies)node lint-config/no-consecutive-headings.test.jsTest Coverage
All 17 tests pass ✅
Why This Matters
The custom lint rule enforces documentation style guidelines but had no tests to verify its behavior. This PR adds comprehensive test coverage to catch regressions during future changes.
Summary by CodeRabbit
✏️ Tip: You can customize this high-level summary in your review settings.