Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

jest-preset-angular

Package Overview
Dependencies
Maintainers
3
Versions
139
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

jest-preset-angular - npm Package Versions

1
14

8.1.2

Diff

Changelog

Source

8.1.2 (2020-03-15)

Bug Fixes

  • simplify zone patch test method impl (#361) (4cc8708)
wtho
published 8.1.1 •

Changelog

Source

8.1.1 (2020-03-12)

Bug Fixes

  • zone.js patch jest should handle done correctly (#357) (34287f5)
wtho
published 8.1.0 •

Changelog

Source

8.1.0 (2020-03-10)

Bug Fixes

wtho
published 8.0.0 •

Changelog

Source

8.0.0 (2019-10-21)

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).

Chores

  • Update jsdom to current version 15 (#318).

BREAKING CHANGES

  • 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.
thymikee
published 7.1.1 •

Changelog

Source

8.0.0 (2019-10-21)

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).

Chores

  • Update jsdom to current version 15 (#318).

BREAKING CHANGES

  • 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.
thymikee
published 7.1.0 •

Changelog

Source

7.1.0 (2019-05-20)

Features

  • component serializer without ng-* attributes (#97) (1079528)
  • support core-js >=2.0.0 < 4.0.0 (#246) (239a647)

Chores

  • Fixed a CI cache issue in the example app, which would not always use the current version of the preset in the test runs.
thymikee
published 7.0.1 •

thymikee
published 7.0.0 •

Changelog

Source

7.0.0 (2019-03-08)

Bug Fixes

Features

Chores

  • Remove template literal character escaping, reverts #34
  • Migrate CI config to CircleCI v2 (#212)
  • docs: do not use .babelrc file but rather babel.config.js (#231)
  • docs: add astTransformers in configuration example (#218)

BREAKING CHANGES

  • If global and transform are not set in your configuration in jest.config.json, jest.config.js or package.json, you are done.
  • If the global value of the configuration was overridden, adjust
    • The option "__TRANSFORM_HTML__": true is not required anymore. Instead the "stringifyContentPathRegex": "\\.html$" should be used inside the ts-jest-configuration.
    • Change the assignment identifier from tsConfigFile to tsConfig.
    • Add the astTransformers: [require.resolve('jest-preset-angular/InlineHtmlStripStylesTransformer')] so Jest can work with templateUrl-assignments in Component decorators.
  • If transform was overridden, remove the entry pointing at preprocessor.js and add "^.+\\.(ts|js|html)$": "ts-jest" to the transform-object.
  • If in doubt, check the configuration example in jest-preset.json.
thymikee
published 7.0.0-alpha.5 •

thymikee
published 7.0.0-alpha.4 •

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc