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

transformIgnorePatterns in jest.config.js #7

Open
arturhun opened this issue Sep 19, 2018 · 0 comments
Open

transformIgnorePatterns in jest.config.js #7

arturhun opened this issue Sep 19, 2018 · 0 comments

Comments

@arturhun
Copy link

Hi,

I used your blog post and this repo when trying to place jest in a ng new app (v6). Following your instruction, my app did not work - and when comparing the source and config files between yours and mine, the only differences were somewhere around module: es5, commonjs - however - when I copied those into my app, it did not help.

My jest refused to work until I put:

transformIgnorePatterns: [
    "node_modules/(?!@ngrx|angular2-ui-switch|ng-dynamic)"
  ],

into my jest.config.js

This is a piece of code I could not find in your repo. Would you mind shedding some light on me as per why my app actually needs it?

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