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

fix(gatsby-remark-responsive-iframe): Support MDX by visiting JSX nodes #13913

Merged
merged 2 commits into from
Jun 24, 2019

Conversation

johno
Copy link
Contributor

@johno johno commented May 7, 2019

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

@johno johno force-pushed the responsive-iframe branch from 1eaa99d to 029f249 Compare May 7, 2019 20:35
@johno johno requested a review from ChristopherBiscardi May 7, 2019 20:36
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
@johno johno force-pushed the responsive-iframe branch from 029f249 to 93f5c8a Compare May 8, 2019 13:55
@DSchau DSchau added the status: awaiting reviewer response A pull request that is currently awaiting a reviewer's response label May 14, 2019
})

expect(node).toBeDefined()
expect(node.value).toMatchSnapshot()
Copy link
Contributor

@pieh pieh May 17, 2019

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)

Copy link
Contributor Author

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 👍

@pieh pieh removed the status: awaiting reviewer response A pull request that is currently awaiting a reviewer's response label May 17, 2019
@DSchau DSchau added the status: awaiting author response Additional information has been requested from the author label May 28, 2019
@johno johno requested a review from a team as a code owner June 21, 2019 07:44
@freiksenet freiksenet merged commit 8da38c0 into gatsbyjs:master Jun 24, 2019
@johno johno deleted the responsive-iframe branch June 24, 2019 14:53
@wardpeet
Copy link
Contributor

Published in gatsby-remark-responsive-iframe@2.2.1

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
status: awaiting author response Additional information has been requested from the author
Projects
None yet
Development

Successfully merging this pull request may close these issues.

6 participants