Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Tags: Add MDX test cases #29655

Open
wants to merge 1 commit into
base: next
Choose a base branch
from
Open

Tags: Add MDX test cases #29655

wants to merge 1 commit into from

Conversation

shilman
Copy link
Member

@shilman shilman commented Nov 19, 2024

Add test cases for MDX handling, which is already supported in the code.

🦋 Canary release

This PR does not have a canary release associated. You can request a canary release of this pull request by mentioning the @storybookjs/core team here.

core team members can create a canary release here or locally with gh workflow run --repo storybookjs/storybook canary-release-pr.yml --field pr=<PR_NUMBER>

Greptile Summary

Added test cases to verify MDX tag handling functionality in Storybook's documentation system, ensuring proper indexing and processing of custom tags in MDX files.

  • Added code/addons/docs/template/stories/docs2/Tags.mdx demonstrating Meta component with tags property
  • Added test case in StoryIndexGenerator.test.ts to verify MDX files with tags are properly indexed
  • Added mock data file __mockdata__/src/docs2/Tags.mdx for testing tag handling
  • Modified stories-json.test.ts to validate custom tags ('foo', 'bar') are preserved alongside default tags

@shilman shilman added mdx build Internal-facing build tooling & test updates tags labels Nov 19, 2024
Copy link
Contributor

Fails
🚫

PR is not labeled with one of: ["ci:normal","ci:merged","ci:daily","ci:docs"]

Generated by 🚫 dangerJS against e6a8de0

Copy link
Contributor

@greptile-apps greptile-apps bot left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

4 file(s) reviewed, no comment(s)
Edit PR Review Bot Settings | Greptile

Copy link

nx-cloud bot commented Nov 19, 2024

☁️ Nx Cloud Report

CI is running/has finished running commands for commit e6a8de0. As they complete they will appear below. Click to see the status, the terminal output, and the build insights.

📂 See all runs for this CI Pipeline Execution


✅ Successfully ran 1 target

Sent with 💌 from NxCloud.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
build Internal-facing build tooling & test updates mdx tags
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant