alexjoverm / alexjoverm/typescript-library-starter

ES6 imports

Aberta
#307 0 comentários 0 reações 0 responsáveis Ver no GitHub
Linguagem predominante
TypeScript
Estrelas
4.4k
Forks
476
Métricas de merge de PRs
Nenhum PR com merge em 30d

Descrição

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

Guia de contribuição

Abrir o guia de contribuição

Avaliação

Esta issue ainda não foi avaliada.

Receba novas issues na sua caixa de entrada

Um resumo curto de issues do GitHub para quem está começando.