Skip to content

Find a better way to use ESM with Jest and replace jest-esm-transformer #1502

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
0pdd opened this issue Jan 12, 2021 · 2 comments
Open

Find a better way to use ESM with Jest and replace jest-esm-transformer #1502

0pdd opened this issue Jan 12, 2021 · 2 comments
Labels
ADR/needed A decision has been made and it needs to be documented area/frontend techdebt

Comments

@0pdd
Copy link

0pdd commented Jan 12, 2021

The puzzle 1484-7c5cb814 from #1484 has to be resolved:

// @todo #1484 Find a better way to use ESM with Jest and replace jest-esm-transformer

The puzzle was created by Slava Semushin on 10-Jan-21

@php-coder php-coder added the ADR/needed A decision has been made and it needs to be documented label Jan 13, 2021
@php-coder
Copy link
Owner

Quote from https://www.valentinog.com/blog/jest/#bonus-es-modules-with-jest

if you wish to use import ES module syntax in your Jest tests without babel and friends you should have Node.js >=v13.x, and Jest >=26.1.0 installed.

In other words, we can use babel for transforming code for us or wait for #1442

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
ADR/needed A decision has been made and it needs to be documented area/frontend techdebt
Projects
None yet
Development

No branches or pull requests

2 participants