github thymikee/jest-preset-angular v8.0.0

latest releases: v17.0.0, v16.2.0, v16.1.5...
6 years ago

Features

  • (BREAKING): Refine ast-transformer behavior: only transform styles-assignments inside @component (#261) and TypeScript v2.9 createStringLiteral is polyfilled if an older version is used (#272).
  • (BREAKING): Restructure project with src and build folder (#307).
  • (BREAKING): Support tsconfig.spec.json in root folder by default (#309).
  • (BREAKING): Enable AngularNoAngularNoNgAttributesSnapshotSerializer (created in #97) by default (#318).
  • Remove core-js dependency by using internal, minimal reflect-metadata (#315).

Chore && Maintenance

  • Update example app to match Angular 8 Boilerplate (#311).
  • Update example app to not use karma, extract jest config, fix paths (#316).
  • Update jsdom to current version 15 (#318).

Migration Guide

  • If the astTransformers are referenced in a custom jest config, [ 'jest-preset-angular/build/InlineFilesTransformer', 'jest-preset-angular/build/StripStylesTransformer'] have to be set instead.
  • Serializers, transformers and setupJest have to be referenced from the jest-preset-angular/build/-folder in a custom config. Existing references have to be aligned.
  • If your 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.
  • In an Angular 8 project or higher, core-js should no longer be a dependency declared in package.json, unless it's imported manually in the code.

Don't miss a new jest-preset-angular release

NewReleases is sending notifications on new releases.