Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

https://github.com/actuallyacat/jest-esm-transformer

This is a jest config tool that transforms esm files into cjs
https://github.com/actuallyacat/jest-esm-transformer

Last synced: 3 months ago
JSON representation

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

Awesome Lists containing this project

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

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