hops-mdx-jest
v0.2.0
Published
Enable hops-mdx in your Jest environment.
Downloads
2
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-jest
Usage
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.