alexjoverm / alexjoverm/typescript-library-starter

ES6 imports

Aperta
#307 0 commenti 0 reazioni 0 assegnatari Vedi su GitHub
Lingua principale
TypeScript
Stelle
4.4k
Fork
476
Metriche di merge delle PR
Nessuna PR unita negli ultimi 30g

Descrizione

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 :thinking: Or maybe it's just me... :sweat_smile:

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](https://user-images.githubusercontent.com/4950209/62421919-c99cd800-b6a1-11e9-897a-c873e1e98fc7.png)

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

Any help would be really appreciated! :smile:

Thanks

Guida per i contributori

Apri la guida per i contributori

Valutazione

Questa issue non è ancora stata valutata.

Ricevi le nuove issue nella tua casella

Un breve riepilogo di issue GitHub adatte ai principianti.