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

12.1.0

Diff

Changelog

Source

12.1.0 (2022-06-03)

Features

  • allow passing the teardown object to global-setup (#1475) (3dab02b)
  • support Angular 14 (#1611) (7c294d7), closes #1410
anhpnnd
published 12.1.0-next.0 •

anhpnnd
published 12.0.1 •

Changelog

Source

12.0.1 (2022-05-14)

Features

  • allow configuring destroyAfterEach via globalThis for setup test env (#1469) (9a735f9), closes #1466
anhpnnd
published 12.0.0 •

Changelog

Source

12.0.0 (2022-05-10)

Bug Fixes

Features

BREAKING CHANGES

  • Since Angular 11, the minimum version of zone.js is 0.11.x and Angular 10 is EOL, so now we can use zone patch directly from zone.js. If one is not using zone.js@0.11.x, please upgrade.
  • Now we are using Angular AST transformers, reflect-metadata is not needed anymore.
  • Jest 28 correctly resolves Angular package format files so the ng-jest-resolver is now optional.
  • Node 12 is no longer support
  • Previously, we always checked file extension .mjs and any files from node_modules excluding tslib to be processed with esbuild. With the new option processWithEsbuild, now we put default all .mjs files to be processed by esbuild. Files like lodash-es default isn't processed by esbuild. If you wish to use esbuild to process such files, please configure in your Jest config like
// jest.config.js
module.exports = {
    //...
    globals: {
         ngJest: {
              processWithEsbuild: ['**/node_modules/lodash-es/*.js],
         }
    }
}
  • Angular 10 is no longer support
  • Require Jest 28
  • ngcc-jest-processor entry file is now removed. One should use jest-preset-angular/global-setup instead.
anhpnnd
published 12.0.0-next.2 •

Changelog

Source

12.0.0 (2022-05-10)

Bug Fixes

Features

BREAKING CHANGES

  • Since Angular 11, the minimum version of zone.js is 0.11.x and Angular 10 is EOL, so now we can use zone patch directly from zone.js. If one is not using zone.js@0.11.x, please upgrade.
  • Now we are using Angular AST transformers, reflect-metadata is not needed anymore.
  • Jest 28 correctly resolves Angular package format files so the ng-jest-resolver is now optional.
  • Node 12 is no longer support
  • Previously, we always checked file extension .mjs and any files from node_modules excluding tslib to be processed with esbuild. With the new option processWithEsbuild, now we put default all .mjs files to be processed by esbuild. Files like lodash-es default isn't processed by esbuild. If you wish to use esbuild to process such files, please configure in your Jest config like
// jest.config.js
module.exports = {
    //...
    globals: {
         ngJest: {
              processWithEsbuild: ['**/node_modules/lodash-es/*.js],
         }
    }
}
  • Angular 10 is no longer support
  • Require Jest 28
  • ngcc-jest-processor entry file is now removed. One should use jest-preset-angular/global-setup instead.
anhpnnd
published 12.0.0-next.1 •

anhpnnd
published 12.0.0-next.0 •

anhpnnd
published 11.1.2 •

Changelog

Source

11.1.2 (2022-04-24)

Bug Fixes

  • correct deprecation message of ngcc-jest-processor (3899abf), closes #1411
anhpnnd
published 11.1.1 •

Changelog

Source

11.1.1 (2022-02-11)

Performance Improvements

anhpnnd
published 11.1.0 •

Changelog

Source

11.1.0 (2022-01-20)

Bug Fixes

DEPRECATIONS

  • ngcc-jest-processor is deprecated in favor of globalSetup file (#1275) (75e7368)
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