0.2.0 • Published 3 years ago

hops-mdx-jest v0.2.0

Weekly downloads
-
License
MIT
Repository
-
Last release
3 years ago

hops-mdx-jest

npm

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.