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鈥檒l occasionally send you account related emails.

Already on GitHub? Sign in to your account

ES6 imports #307

Open
maxime1992 opened this issue Aug 4, 2019 · 0 comments
Open

ES6 imports #307

maxime1992 opened this issue Aug 4, 2019 · 0 comments

Comments

@maxime1992
Copy link
Contributor

maxime1992 commented Aug 4, 2019

My tests don't run if I have ES6 imports.

I've looked around and apparently we can now use one of the provided presets directly:

https://kulshekhar.github.io/ts-jest/user/config/#the-3-presets

I'm surprised it hasn't been mentioned yet 馃 Or maybe it's just me... 馃槄

The issue? When I try to load the preset, it doesn't work and I get:

Module node_modules/ts-jest/presets/js-with-babel/jest-preset in the transform option was not found.

I've upgraded everything related to Jest and I can see the following in my node_modules:

image

So I guess that the version I've got should at least allow the preset to be found.

Any help would be really appreciated! 馃槃

Thanks

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant