Instrument MDX #27946
Unanswered
frattaro
asked this question in
Ideas / Feature Requests
Instrument MDX
#27946
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
For some background, I'm using Docz and running Cypress testing against it. I want to add code coverage -- ideally that would trickle down to my components that are referenced in the mdx. I've found I can't instrument the MDX output.
Digging, I found that the babel transform for the MDX output appears to ignore any babel configuration:
gatsby/packages/gatsby-plugin-mdx/loaders/mdx-loader.js
Line 201 in 7e431fd
If I understand the situation (good possibility I'm missing something important) -- can we add a hook to modify that babel transform? (I would add
babel-plugin-istanbul
)Beta Was this translation helpful? Give feedback.
All reactions