jest-esm-transformer

1.0.0 • Public • Published

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

Dependencies (2)

Dev Dependencies (0)

    Package Sidebar

    Install

    npm i jest-esm-transformer

    Weekly Downloads

    25,327

    Version

    1.0.0

    License

    ISC

    Unpacked Size

    14.6 kB

    Total Files

    4

    Last publish

    Collaborators

    • trycatchally