ngrx-testing icon indicating copy to clipboard operation
ngrx-testing copied to clipboard

transformIgnorePatterns in jest.config.js

Open arturhun opened this issue 6 years ago • 0 comments

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?

arturhun avatar Sep 19 '18 11:09 arturhun