Skip to content

Commit

Permalink
modify astTransforms for angular 8 (#20)
Browse files Browse the repository at this point in the history
  • Loading branch information
schuchard authored Nov 7, 2019
1 parent d069049 commit 5944fc1
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion src/jest/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -144,7 +144,10 @@ function addTestScriptsToPackageJson(): Rule {
'ts-jest': {
tsConfig: '<rootDir>/tsconfig.spec.json',
stringifyContentPathRegex: '\\.html$',
astTransformers: ['jest-preset-angular/InlineHtmlStripStylesTransformer.js'],
astTransformers: [
'jest-preset-angular/build/InlineFilesTransformer',
'jest-preset-angular/build/StripStylesTransformer'
],
},
},
});
Expand Down

0 comments on commit 5944fc1

Please sign in to comment.