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
- Host: GitHub
- URL: https://github.com/actuallyacat/jest-esm-transformer
- Owner: ActuallyACat
- Created: 2019-05-09T07:33:49.000Z (about 6 years ago)
- Default Branch: master
- Last Pushed: 2023-01-03T21:43:18.000Z (over 2 years ago)
- Last Synced: 2025-02-21T01:45:31.222Z (5 months ago)
- Language: JavaScript
- Homepage:
- Size: 1.19 MB
- Stars: 20
- Watchers: 2
- Forks: 8
- Open Issues: 7
-
Metadata Files:
- Readme: README.md
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