hops-mdx-jest
v0.2.0
Published
Enable hops-mdx in your Jest environment.
Downloads
10
Readme
hops-mdx-jest
This is a helper that brings MDX support to the Jest enviroment of your Hops application and should be used alongside jest-preset-hops.
Installation
npm install --save-dev hops-mdx-jestUsage
To use the helper, extend your Jest configuration like this:
{
"jest": {
"preset": "jest-preset-hops",
"transform": {
"\\.mdx?$": "hops-mdx-jest"
}
}
}Now your MDX components will e.g. be fully rendered into snapshot tests.
