chore: 📦 update dependency jest-preset-angular to v10 - autoclosed #220
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
This PR contains the following updates:
8.4.0
->10.1.0
Release Notes
thymikee/jest-preset-angular
v10.1.0
Compare Source
Bug Fixes
target
to ES2015 whentarget
> ES2016 (#1118) (64229a8), closes #1058Code Refactoring
downlevel-ctor
transformer (#1099) (3c26aba)replace-resource
transformer (#1100) (ce68298)html-comment
to new Jest serializer (#1114) (3005330)v10.0.1
Compare Source
Bug Fixes
ngcc-jest-processor
via some Jest args (#1013) (7d3a712)v10.0.0
Compare Source
Build
BREAKING CHANGES
Angular 9 is no longer supported, see https://angular.io/guide/releases#support-policy-and-schedule The minimum support Angular version now is 10
9.0.7 (2021-08-20)
Bug Fixes
ngcc-jest-processor
(#991) (4735f90), closes #9909.0.6 (2021-08-17)
Bug Fixes
allowJs: true
internally always (#976) (9900c8b), closes #974@angular/core
forngcc-jest-preprocessor
util (#981) (c35d3f2)9.0.5 (2021-07-22)
Features
Code Refactoring
webpack
and@angular-devkit/build-angular
from peer dependencies and optional dependencies (#973) (ce7fc60)9.0.4 (2021-06-15)
Bug Fixes
9.0.3 (2021-06-08)
Bug Fixes
@angular/platform-browser-dynamic
to peer dep (c1729e4)9.0.2 (2021-06-06)
Bug Fixes
exports
inpackage.json
(#948) (928e08b), closes /github.com/thymikee/jest-preset-angular/issues/941#issuecomment-8545803489.0.1 (2021-05-28)
Bug Fixes
build
inpackage.json
(#936) (b035581), closes #935v9.0.7
Compare Source
Bug Fixes
ngcc-jest-processor
(#991) (4735f90), closes #990v9.0.6
Compare Source
Bug Fixes
allowJs: true
internally always (#976) (9900c8b), closes #974@angular/core
forngcc-jest-preprocessor
util (#981) (c35d3f2)v9.0.5
Compare Source
Features
Code Refactoring
webpack
and@angular-devkit/build-angular
from peer dependencies and optional dependencies (#973) (ce7fc60)v9.0.4
Compare Source
Bug Fixes
v9.0.3
Compare Source
Bug Fixes
@angular/platform-browser-dynamic
to peer dep (c1729e4)v9.0.2
Compare Source
Bug Fixes
exports
inpackage.json
(#948) (928e08b), closes /github.com/thymikee/jest-preset-angular/issues/941#issuecomment-854580348v9.0.1
Compare Source
Bug Fixes
build
inpackage.json
(#936) (b035581), closes #935v9.0.0
Compare Source
Bug Fixes
moduleNameMapper
config (#910) (df482bc), closes #908Features
exports
field topackage.json
, see https://nodejs.org/api/packages.html#packages_package_entry_pointspresets
entry point (#801) (e4ff0c0)replace-resources
AST transformer from Angular (#708) (1b20c19)downlevel-ctor
AST transformer from Angular (#730) (1f964c3)Performance Improvements
cacheFS
from jest to reduce file system reading (#679) (f5d9d4b)skipLibCheck: true
if not defined in tsconfig (#678) (0df3ce1)BREAKING CHANGES
import 'jest-preset-angular'
should change toimport 'jest-preset-angular/setup-jest'
InlineFilesTransformer
andStripStylesTransformer
are REMOVED anddefault
jest-preset-angular
uses AST transformers from@angular/compiler-cli
and@ngtools/webpack
.One should remove the old transformers from the jest config.
jest-preset-angular
now switches to default to use its own transformer which wraps aroundts-jest
to transform codes.Users who are currently doing in jest config
should change to
'jest-preset-angular/build/AngularNoNgAttributesSnapshotSerializer.js'
is changed to'jest-preset-angular/build/serializers/no-ng-attributes
.'jest-preset-angular/build/AngularSnapshotSerializer.js'
is changed to'jest-preset-angular/build/serializers/ng-snapshot
.'jest-preset-angular/build/HTMLCommentSerializer.js'
is changed to'jest-preset-angular/build/serializers/html-comment
.tsconfig.json
doesn't contain any path mappingshence removing
moduleNameMapper
from preset will make sure that the preset works in pair withtsconfig.json
.Ones who are relying on the value of
moduleNameMapper
from the preset should create their ownmoduleNameMapper
config manually or via
ts-jest
util https://kulshekhar.github.io/ts-jest/docs/getting-started/paths-mapping.If you wish to reuse the old configuration of
moduleNameMapper
, you can put this into your Jest configskipLibCheck
is not defined in tsconfig,jest-preset-angular
will set it totrue
. If one wants to have it asfalse
, one can set explicitly in tsconfig.jest-preset-angular
now switches to default to use its own transformer which wraps aroundts-jest
to transform codes.Users who are currently doing in jest config
should change to
Configuration
📅 Schedule: At any time (no schedule defined).
🚦 Automerge: Disabled due to failing status checks.
♻ Rebasing: Whenever PR becomes conflicted, or you tick the rebase/retry checkbox.
🔕 Ignore: Close this PR and you won't be reminded about this update again.
This PR has been generated by WhiteSource Renovate. View repository job log here.