Skip to content
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

ts-jest doesn’t work with pure ESM dependencies #90

Open
mixn opened this issue May 26, 2023 · 0 comments
Open

ts-jest doesn’t work with pure ESM dependencies #90

mixn opened this issue May 26, 2023 · 0 comments
Labels
help-wanted Extra attention is needed

Comments

@mixn
Copy link
Owner

mixn commented May 26, 2023

I’d really appreciate some help on this, thank you if you are reading this. 👏 🙏

I unfortunately can’t get ts-jest to play nicely with dependencies that are Pure ESM Packages like del, clipboardy, meow, etc., hence I’m currently stuck using older versions of them.

As soon as a test case touches code from these pure ESM packages, some tests will fail. Examples:
https://github.com/mixn/carbon-now-cli/actions/runs/5089894999/jobs/9148055332?pr=89#step:6:75
https://github.com/mixn/carbon-now-cli/actions/runs/5090004820/jobs/9148296314?pr=86#step:6:43

Consuming the packages outside of the context of Jest works flawlessly though, terminal-image for example is up-to-date.

I’ve spent way too much time on this in the early days of the v2 rewrite, but eventually decided to simply downgrade the package versions cause I got quite annoyed by not being able to continue getting actual work done on v2.

Now that v2 is out and dependabot is opening PR’s, I’d really appreciate being able to solve this once and for all.

Thanks for reading and I’d appreciate any help!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
help-wanted Extra attention is needed
Projects
None yet
Development

No branches or pull requests

1 participant