Skip to content

cdfa/jest-transformer-mdx

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

17 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

jest-transformer-mdx

Github release version Commits since release npm release version

Introduction

A simple jest transformer for MDX with frontMatter support.

Instructions

Install

yarn add jest-transformer-mdx

Add to your jest config

module.exports = {
  // A map from regular expressions to paths to transformers
  transform: {
    "^.+\\.(md|mdx)$": 'jest-transformer-mdx',
  },
};

And that should be it!

Example

Look inside this library's test and the related markdown file to see live a example.

Credits

Made possible by

About

A jest transformer for MDX with frontMatter support

Resources

Stars

Watchers

Forks

Packages

No packages published

Languages

  • JavaScript 100.0%