-
Notifications
You must be signed in to change notification settings - Fork 10.3k
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
fix(gatsby-remark-responsive-iframe): Support MDX by visiting JSX nodes #13913
Conversation
In MDX the nodes that need to be visited are labeled as JSX so this includes that node type in addition to HTML. Related: - mdx-js/mdx#553 - gatsbyjs#13552
}) | ||
|
||
expect(node).toBeDefined() | ||
expect(node.value).toMatchSnapshot() |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Yikes, it seems like snapshot assertion doesn't work well with testInNode8OrHigher
(tests fail with 1 snapshot obsolete
in node 6)
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I'll update the test to not use a snapshot 👍
Published in |
…es (gatsbyjs#13913) In MDX the nodes that need to be visited are labeled as JSX so this includes that node type in addition to HTML. Related: - mdx-js/mdx#553 - gatsbyjs#13552
In MDX the nodes that need to be visited are labeled as JSX so this
includes that node type in addition to HTML.
Related Issues