You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Docs: do not use .babelrc file but rather babel.config.js (#231)
Docs: add astTransformers in configuration example (#218)
Migration Guide
If global and transform are not set in your configuration in jest.config.json, jest.config.js or package.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 the ts-jest-configuration.
Change the assignment identifier from tsConfigFile to tsConfig.
Add the astTransformer: [ require.resolve('jest-preset-angular/InlineHtmlStripStylesTransformer')] so Jest can work with templateUrl-assignments in Component decorators.
If transform was overridden, remove the entry pointing at preprocessor.js and add "^.+\\.(ts|js|html)$": "ts-jest" to the transform-object.
If in doubt, check the configuration example in jest-preset.json.