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
147
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
15

9.0.0-next.1

Diff

Changelog

Source

9.0.0-next.1 (2020-10-29)

BREAKING CHANGES

  • compiler: jest-preset-angular now switches to default to use its own transformer which wraps around ts-jest to transform codes.

Users who are currently doing in jest config

// jest.config.js
module.exports = {
    // [...]
    transform: {
      '^.+\\.(ts|js|html)$': 'ts-jest',
    },
}

should change to

// jest.config.js
module.exports = {
    // [...]
    transform: {
      '^.+\\.(ts|js|html)$': 'jest-preset-angular',
    },
}
anhpnnd
published 8.3.2 •

Changelog

Source

8.3.2 (2020-10-23)

Chores

  • config: switch to tsconfig for jest-preset.js
anhpnnd
published 9.0.0-next.0 •

Changelog

Source

9.0.0-next.0 (2020-10-18)

Chore

BREAKING CHANGES

We are working on Ivy compatibility for this preset. This requires introducing a different Jest transformer than the default one from ts-jest. To get updates on this work, please subscribe to #409

  • Users who are using import 'jest-preset-angular' should change to import 'jest-preset-angular/setup-jest'
  • Drop support for Angular < 8.0, see https://angular.io/guide/releases#support-policy-and-schedule
  • transformers: The AST transformers InlineFilesTransformer and StripStylesTransformer are REMOVED and default jest-preset-angular uses AST transformers from @angular/compiler-cli. One should remove the old transformers from the jest config.
  • serializers: One is using all jest-preset-angular snapshot serializers should change jest config to have:
// jest.config.js
const jestPresetAngularSerializers = require('jest-preset-angular/build/serializers')

module.exports = {
     // [...]
     snapshotSerializers: jestPresetAngularSerializers,
}

One is using one of jest-preset-angular snapshot serializers should change jest config to have:

// jest.config.js
module.exports = {
     // [...]
     snapshotSerializers: [
          'jest-preset-angular/build/serializers/html-comment'
     ]
}

or

// package.json
{
      // [...]
     "jest": {
           snapshotSerializers: [
                "jest-preset-angular/build/serializers/html-comment"
           ]
      }
}
anhpnnd
published 8.3.1 •

Changelog

Source

8.3.1 (2020-08-23)

Bug Fixes

  • Correct wrong published content in v8.3.0
anhpnnd
published 8.3.0 •

Changelog

Source

8.3.0 (2020-08-23)

Features

Bug Fixes

anhpnnd
published 8.2.1 •

Changelog

Source

8.2.1 (2020-06-19)

Features

wtho
published 8.2.0 •

Changelog

Source

8.2.0 (2020-05-07)

Features

wtho
published 8.1.3 •

Changelog

Source

8.1.3 (2020-03-31)

Features

  • make AngularSnapshotSerializer compatible with Ivy (#366) (c648786)
wtho
published 8.1.2 •

Changelog

Source

8.1.2 (2020-03-15)

Bug Fixes

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