jest-esm-transformer
v1.0.0
Published
This is a jest utility that transforms esm files into cjs, so that they can be parsed by Jest.
Downloads
108,264
Readme
jest-esm-transformer
This is a jest utility that transforms esm files into cjs, so that they can be parsed by Jest.
Getting started
yarn add jest-esm-transformer
- 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