test: check stability block position in API markdown
The doc generator will only add a stability marker to the index if the blockquote element appears close to the relevant heading. There is an ordering convention (<heading> [<yaml>] <stability>) which is not currently enforced.
Adding a test for this identifies one element which is currently non-compliant, buf.slice() in buffer.md, which does not appear as deprecated in the index due to the malpositioned deprecation block.
Codecov Report
:white_check_mark: All modified and coverable lines are covered by tests.
:white_check_mark: Project coverage is 90.20%. Comparing base (641653b) to head (91a8078).
:warning: Report is 1139 commits behind head on main.
Additional details and impacted files
@@ Coverage Diff @@
## main #58590 +/- ##
==========================================
- Coverage 90.21% 90.20% -0.01%
==========================================
Files 635 635
Lines 187494 187495 +1
Branches 36838 36818 -20
==========================================
- Hits 169144 169129 -15
+ Misses 11145 11117 -28
- Partials 7205 7249 +44
:rocket: New features to boost your workflow:
- :snowflake: Test Analytics: Detect flaky tests, report on failures, and find test suite problems.
- :package: JS Bundle Analysis: Save yourself from yourself by tracking and limiting bundle sizes in JS merges.
CI: https://ci.nodejs.org/job/node-test-pull-request/70187/