Skip to content

This is a jest config tool that transforms esm files into cjs

Notifications You must be signed in to change notification settings

ActuallyACat/jest-esm-transformer

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

7 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

jest-esm-transformer

This is a jest utility that transforms esm files into cjs, so that they can be parsed by Jest.

Getting started

  1. yarn add jest-esm-transformer
  2. Add this to your jest config, targetting your esm files:
transform: {
   '.js': 'jest-esm-transformer',
}

Credit

All the credit goes to https://github.com/onigoetz

About

This is a jest config tool that transforms esm files into cjs

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published