Jest configuration preset for Angular projects.
MIT License
Bot releases are visible (Hide)
Published by github-actions[bot] over 3 years ago
Published by github-actions[bot] over 3 years ago
Published by github-actions[bot] over 3 years ago
Published by github-actions[bot] over 3 years ago
Published by github-actions[bot] almost 4 years ago
Published by github-actions[bot] almost 4 years ago
Published by github-actions[bot] almost 4 years ago
Published by github-actions[bot] almost 4 years ago
Published by github-actions[bot] almost 4 years ago
Published by ahnpnl almost 4 years ago
Cut release v9.0.0-next.1
Published by ahnpnl about 4 years ago
Published by ahnpnl about 4 years ago
Published by ahnpnl about 4 years ago
Published by ahnpnl about 4 years ago
Published by ahnpnl over 4 years ago
Published by wtho about 5 years ago
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).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.jest-zone-patch
into this preset (#214)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 overriden, adjust
"__TRANSFORM_HTML__": true
is not required anymore. Instead the "stringifyContentPathRegex": "\\.html$"
should be used inside the ts-jest
-configuration.tsConfigFile
to tsConfig
.astTransformer: [ 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
.