hops-mdx-jest

0.2.0 • Public • Published

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.

Readme

Keywords

Package Sidebar

Install

npm i hops-mdx-jest

Weekly Downloads

2

Version

0.2.0

License

MIT

Unpacked Size

5 kB

Total Files

5

Last publish

Collaborators

  • herschel666