jest-preset-angular
Advanced tools
Changelog
9.0.0-next.11 (2021-03-21)
exports
field to package.json
, see https://nodejs.org/api/packages.html#packages_package_entry_pointsChangelog
8.4.0 (2021-03-04)
'jest-preset-angular/build/AngularNoNgAttributesSnapshotSerializer.js'
is deprecated in favor of 'jest-preset-angular/build/serializers/no-ng-attributes'
'jest-preset-angular/build/AngularSnapshotSerializer.js'
is deprecated in favor of 'jest-preset-angular/build/serializers/ng-snapshot'
'jest-preset-angular/build/HTMLCommentSerializer.js'
is deprecated in favor of 'jest-preset-angular/build/serializers/html-comment'
import 'jest-preset-angular'
is deprecated in favor of import 'jest-preset-angular/setup-jest'
Changelog
9.0.0-next.5 (2021-01-06)
replace-resources
transformer from Angular (#708) (1b20c19)es2015
to ngcc
script's properties (#701) (a13070b)isolatedModules: true
will use inline-files
and strip-styles
transformers as default transformers.isolatedModules: false
will use replace-resources
transformer from @ngtools/webpack
(besides the existing downlevel-ctor
transformer). This will make jest-preset-angular
become closer to what Angular CLI does with Karma + Jasmine.'jest-preset-angular/build/InlineFilesTransformer'
and 'jest-preset-angular/build/StripStylesTransformer'
should be removed from jest config.jest-preset-angular/build/transformers/inline-files
and jest-preset-angular/build/transformers/inline-files
should be removed from jest config.Changelog
9.0.0-next.4 (2020-12-18)
cacheFS
from jest to reduce file system reading (#679) (f5d9d4b)skipLibCheck: true
if not defined in tsconfig (#678) (0df3ce1)skipLibCheck
is not defined in tsconfig, jest-preset-angular
will set it to true
. If one wants to have it as false
, one can set explicitly in tsconfig.