jest-preset-angular
Advanced tools
Changelog
8.0.0 (2019-10-21)
styles
-assignments inside @Component (#261) and TypeScript v2.9 createStringLiteral
is polyfilled if an older version is used (#272).src
and build
folder (#307).tsconfig.spec.json
in root folder by default (#309).AngularNoAngularNoNgAttributesSnapshotSerializer
(created in #97) by default (#318).core-js
dependency by using internal, minimal reflect-metadata
(#315).astTransformers
are referenced in a custom jest
config, [ 'jest-preset-angular/build/InlineFilesTransformer', 'jest-preset-angular/build/StripStylesTransformer']
have to be set instead.setupJest
have to be referenced from the jest-preset-angular/build/
-folder in a custom config. Existing references have to be aligned.tsconfig.spec.json
is located in src
, move it to your root folder and adjust the referenced files and paths inside, or align your jest configuration as discussed in the README.md.core-js
should no longer be a dependency declared in package.json
, unless it's imported manually in the code.Changelog
8.0.0 (2019-10-21)
styles
-assignments inside @Component (#261) and TypeScript v2.9 createStringLiteral
is polyfilled if an older version is used (#272).src
and build
folder (#307).tsconfig.spec.json
in root folder by default (#309).AngularNoAngularNoNgAttributesSnapshotSerializer
(created in #97) by default (#318).core-js
dependency by using internal, minimal reflect-metadata
(#315).astTransformers
are referenced in a custom jest
config, [ 'jest-preset-angular/build/InlineFilesTransformer', 'jest-preset-angular/build/StripStylesTransformer']
have to be set instead.setupJest
have to be referenced from the jest-preset-angular/build/
-folder in a custom config. Existing references have to be aligned.tsconfig.spec.json
is located in src
, move it to your root folder and adjust the referenced files and paths inside, or align your jest configuration as discussed in the README.md.core-js
should no longer be a dependency declared in package.json
, unless it's imported manually in the code.Changelog
7.0.0 (2019-03-08)
jest-zone-patch
(#209) (1c60de7)astTransformer
compatible with ts-jest
23.10 (#204) (adad842), closes #195 #201 #201 #201.babelrc
file but rather babel.config.js
(#231)astTransformers
in configuration example (#218)global
and transform
are not set in your configuration in jest.config.json
, jest.config.js
or package.json
, you are done.global
value of the configuration was overridden, adjust
"__TRANSFORM_HTML__": true
is not required anymore. Instead the "stringifyContentPathRegex": "\\.html$"
should be used inside the ts-jest
-configuration.tsConfigFile
to tsConfig
.astTransformers: [require.resolve('jest-preset-angular/InlineHtmlStripStylesTransformer')]
so Jest can work with templateUrl
-assignments in Component decorators.transform
was overridden, remove the entry pointing at preprocessor.js
and add "^.+\\.(ts|js|html)$": "ts-jest"
to the transform
-object.jest-preset.json
.