Skip to content

test: cover TableOfContentMarkdown component - #2516

Open
garv-sanveria wants to merge 2 commits into
json-schema-org:mainfrom
garv-sanveria:test/toc-markdown
Open

garv-sanveria wants to merge 2 commits into
json-schema-org:mainfrom
garv-sanveria:test/toc-markdown

Conversation

@garv-sanveria

@garv-sanveria garv-sanveria commented Sep 27, 2026 •

Copy link
Copy Markdown

What kind of change does this PR introduce?
Test coverage addition.

Issue Number:- Related to #2496
Others: No related issue, just adding missing component test coverage.

Screenshots/videos:
N/A (Just tests)

If relevant, did you update the documentation?
N/A

Summary
The TableOfContentMarkdown component currently had no test coverage. This PR adds a standard Cypress component test to verify that the markdown headings (h1, h2, h3) render correctly based on the depth prop.

@github-actions

Copy link
Copy Markdown

Hi @garv-sanveria! Thanks a lot for your contribution!

I noticed that the following required information is missing or incomplete: issue reference

Please update the PR description to include this information. You can find placeholders in the PR template for these items.

Thanks a lot!

@github-actions

Copy link
Copy Markdown

Hi @garv-sanveria! Thanks a lot for your contribution!

I noticed that the following required information is missing or incomplete: issue reference

Please update the PR description to include this information. You can find placeholders in the PR template for these items.

Thanks a lot!

@github-actions

Copy link
Copy Markdown

Hi @garv-sanveria! Thanks a lot for your contribution!

I noticed that the following required information is missing or incomplete: issue reference

Please update the PR description to include this information. You can find placeholders in the PR template for these items.

Thanks a lot!

@github-actions

github-actions Bot commented Sep 30, 2026 •

Copy link
Copy Markdown
built with Refined Cloudflare Pages Action

⚡ Cloudflare Pages Deployment

Name Status Preview Last Commit
website ✅ Ready (View Log) Visit Preview 951aa7f

@codecov

codecov Bot commented Sep 30, 2026

Copy link
Copy Markdown

Codecov Report

✅ All modified and coverable lines are covered by tests.
✅ Project coverage is 98.35%. Comparing base (7b8104b) to head (951aa7f).
⚠️ Report is 6 commits behind head on main.

Additional details and impacted files
@@             Coverage Diff             @@
##              main    #2516      +/-   ##
===========================================
- Coverage   100.00%   98.35%   -1.65%     
===========================================
  Files           31       32       +1     
  Lines          695      731      +36     
  Branches       215      228      +13     
===========================================
+ Hits           695      719      +24     
- Misses           0       12      +12     

☔ View full report in Codecov by Harness.
📢 Have feedback on the report? Share it here.

🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.
  • 📦 JS Bundle Analysis: Save yourself from yourself by tracking and limiting bundle sizes in JS merges.

This branch was successfully deployed

1 active deployment
Preview — 951aa7fd Deployed Sep 30, 2026 by github-actions[bot]
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

Status: Ready to review

Development

Successfully merging this pull request may close these issues.

1 participant