Releases: thymikee/jest-preset-angular
Releases · thymikee/jest-preset-angular
v7.0.0
Features
- (BREAKING): Upgrade ts-jest to ^23.10.4 and use ast-transformer instead of processor (#204)
- (BREAKING): Upgrade Jest to 24 (#224)
- (BREAKING): Use test environment JSDOM v13 by default (drops Node below 8) (#229)
- Embed
jest-zone-patch
into this preset (#214)
Chore & Maintenance
- Remove template literal character escaping (reverts #34)
- Moved @types/jest to devDependencies (#227), close (#226)
- Upgrade example app dependencies (#233)
- Migrate CI config to CircleCI v2 (#212)
- Docs: do not use .babelrc file but rather babel.config.js (#231)
- Docs: add astTransformers in configuration example (#218)
Migration Guide
- If
global
andtransform
are not set in your configuration injest.config.json
,jest.config.js
orpackage.json
, you are done. - If the
global
value of the configuration was overriden, adjust- The option
"__TRANSFORM_HTML__": true
is not required anymore. Instead the"stringifyContentPathRegex": "\\.html$"
should be used inside thets-jest
-configuration. - Change the assignment identifier from
tsConfigFile
totsConfig
. - Add the
astTransformer: [ require.resolve('jest-preset-angular/InlineHtmlStripStylesTransformer')]
so Jest can work withtemplateUrl
-assignments in Component decorators.
- The option
- If
transform
was overridden, remove the entry pointing atpreprocessor.js
and add"^.+\\.(ts|js|html)$": "ts-jest"
to thetransform
-object. - If in doubt, check the configuration example in
jest-preset.json
.