- No breaking changes (except for updating to Angular 18)
- No breaking changes (except for updating to Angular 18)
- No breaking changes
- No breaking changes (except for updating to Angular 17)
- No breaking changes
- No breaking changes (except for updating to Angular 16)
- Jest 29 is required now, refer to its CHANGELOG for details.
jest-preset-angular
has been updated to version 13. Make sure you understand the implications and perform all the necessary changes to your code base as described injest-preset-angular
CHANGELOG.- Global mocks for
getComputedStyle
anddoctype
are disabled by default, thejsdom
implementation is used instead. The mocks are still available via the optionglobalMocks
.
- No breaking changes (except for updating to Angular 15)
- No breaking changes (except for updating to Angular 15)
- Node 12 is no longer supported
- Node 12 is no longer supported
- Minimal required version of Jest is 28
- Command line arguments in camelCase are no longer supported, use kebab-case instead
- The default value of
getComputedStyle
global mock is{}
instead of{display: 'none', appearance: ['-webkit-appearance']}
- If you use it with custom configuration, make sure you read this
- Node 12 is no longer supported
No breaking changes (except for updating to Angular 13)
jest-preset-angular
has been updated to version 11.
- If you use it without custom configuration then no action required.
- If you use it with custom configuration, you might need to update it.
No breaking changes (except for updating to Angular 12)
- Jest 27 is required now
jest-preset-angular
has been updated to version 9, which uses Angular compiler instead ofts-jest
in order to transform the TS files. Make sure you understand the implications and perform all the necessary changes to your code base as described injest-preset-angular
CHANGELOG.
mergeStrategies
field incustomWebpackConfig
has been deprecated, usemergeRules
instead as defined here.
In order to make this breaking change as backward compatible as possible, the default value of mergeRules
is the following:
{
module: {
rules: {
test: "match",
use: {
loader: "match",
options: "merge",
},
},
},
};
This is as close as possible to the smart
merge strategy that was used before, so ideally if you didn't use mergeStrategies
then your configuration should work just as it worked before.
Otherwise you'll have to adjust the mergeRules
in accordance with your needs.
If you don't want to invest time in learning how the mergeRules
work or you have a complicated use case then consider using Custom Webpack Config Function. This way you'll have full control over the configuration without relying on any merging mechanism.
- Update to Jest 26 if you still haven't.
@angular/architect
andangular/core
are now direct builder dependencies, therefore no need to specify them explicitly inpackage.json
-
jest-preset-angular version has been updated to 8. If you have any custom Jest configuration, make sure it matches the preset version.
-
If you're using Ivy (enabled by default in version 9) make sure you run
ngcc
in apostinstall
hook. For more details refer to this issue.
index.html
is no longer generated with Webpack. This means if your solution uses Webpack to alterindex.html
it will stop working the moment you upgrade to version 8.
Instead you should useindexTransform
property.
@angular-builders/dev-server:generic
has been deprecated. Use@angular-builders/custom-webpack:dev-server
instead.
- Update to Jest 24 if you still haven't.