Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

chore(deps): update dependency jest-preset-angular to v10 #112

Open
wants to merge 1 commit into
base: develop
Choose a base branch
from

Conversation

renovate[bot]
Copy link

@renovate renovate bot commented Oct 18, 2021

Mend Renovate

This PR contains the following updates:

Package Change Age Adoption Passing Confidence
jest-preset-angular (source) 8.3.2 -> 10.1.0 age adoption passing confidence

Release Notes

thymikee/jest-preset-angular (jest-preset-angular)

v10.1.0

Compare Source

Bug Fixes
Code Refactoring
  • transformers use Angular downlevel-ctor transformer (#​1099) (3c26aba)
  • transformers remove workaround for ts < 4.0 in replace-resource transformer (#​1100) (ce68298)
  • transformers migrate html-comment to new Jest serializer (#​1114) (3005330)

v10.0.1

Compare Source

Bug Fixes
  • utils: allow skipping ngcc-jest-processor via some Jest args (#​1013) (7d3a712)

v10.0.0

Compare Source

Build

BREAKING CHANGES

Angular 9 is no longer supported, see https://angular.io/guide/releases#support-policy-and-schedule The minimum support Angular version now is 10

9.0.7 (2021-08-20)

Bug Fixes

9.0.6 (2021-08-17)

Bug Fixes
  • config: set allowJs: true internally always (#​976) (9900c8b), closes #​974
  • utils: throw error when cannot find @angular/core for ngcc-jest-preprocessor util (#​981) (c35d3f2)

9.0.5 (2021-07-22)

Features
Code Refactoring
  • remove webpack and @angular-devkit/build-angular from peer dependencies and optional dependencies (#​973) (ce7fc60)

9.0.4 (2021-06-15)

Bug Fixes

9.0.3 (2021-06-08)

Bug Fixes
  • add missing @angular/platform-browser-dynamic to peer dep (c1729e4)

9.0.2 (2021-06-06)

Bug Fixes

9.0.1 (2021-05-28)

Bug Fixes

v9.0.7

Compare Source

Bug Fixes

v9.0.6

Compare Source

Bug Fixes
  • config: set allowJs: true internally always (#​976) (9900c8b), closes #​974
  • utils: throw error when cannot find @angular/core for ngcc-jest-preprocessor util (#​981) (c35d3f2)

v9.0.5

Compare Source

Features
Code Refactoring
  • remove webpack and @angular-devkit/build-angular from peer dependencies and optional dependencies (#​973) (ce7fc60)

v9.0.4

Compare Source

Bug Fixes

v9.0.3

Compare Source

Bug Fixes
  • add missing @angular/platform-browser-dynamic to peer dep (c1729e4)

v9.0.2

Compare Source

Bug Fixes

v9.0.1

Compare Source

Bug Fixes

v9.0.0

Compare Source

Bug Fixes
Features
Performance Improvements
  • compiler: reuse cacheFS from jest to reduce file system reading (#​679) (f5d9d4b)
  • config: set skipLibCheck: true if not defined in tsconfig (#​678) (0df3ce1)

BREAKING CHANGES

  • Drop support for Angular < 9.0, see https://angular.io/guide/releases#support-policy-and-schedule.
  • Drop support for Node.js version 10 since it becomes EOL on 2021-04-30. Required Node version now is >=12.13.0.
  • Require Jest 27.
  • Users who are using import 'jest-preset-angular' should change to import 'jest-preset-angular/setup-jest'
  • transformers: The AST transformers InlineFilesTransformer and StripStylesTransformer are REMOVED and
    default jest-preset-angular uses AST transformers from @angular/compiler-cli and @ngtools/webpack.
    One should remove the old transformers from the jest config.
  • 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',
    },
}
  • serializers:: snapshot serializer paths have been changed:
    • 'jest-preset-angular/build/AngularNoNgAttributesSnapshotSerializer.js' is changed to 'jest-preset-angular/build/serializers/no-ng-attributes.
    • 'jest-preset-angular/build/AngularSnapshotSerializer.js' is changed to 'jest-preset-angular/build/serializers/ng-snapshot.
    • 'jest-preset-angular/build/HTMLCommentSerializer.js' is changed to 'jest-preset-angular/build/serializers/html-comment.
  • When generating a new project from Angular CLI, by default the tsconfig.json doesn't contain any path mappings
    hence removing moduleNameMapper from preset will make sure that the preset works in pair with tsconfig.json.
    Ones who are relying on the value of moduleNameMapper from the preset should create their own moduleNameMapper
    config manually or via ts-jest util https://kulshekhar.github.io/ts-jest/docs/getting-started/paths-mapping.

If you wish to reuse the old configuration of moduleNameMapper, you can put this into your Jest config

moduleNameMapper: {
  '^src/(.*)$': '<rootDir>/src/$1',
  '^app/(.*)$': '<rootDir>/src/app/$1',
  '^assets/(.*)$': '<rootDir>/src/assets/$1',
  '^environments/(.*)$': '<rootDir>/src/environments/$1',
}
  • By default, if skipLibCheck is not defined in tsconfig, jest-preset-angular will set it to true. If one wants to have it as false, one can set explicitly in tsconfig.
  • 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',
    },
}

v8.4.0

Compare Source

Features
DEPRECATIONS
  • Import serializer via 'jest-preset-angular/build/AngularNoNgAttributesSnapshotSerializer.js' is deprecated in favor of 'jest-preset-angular/build/serializers/no-ng-attributes'
  • Import serializer via 'jest-preset-angular/build/AngularSnapshotSerializer.js' is deprecated in favor of 'jest-preset-angular/build/serializers/ng-snapshot'
  • Import serializer via 'jest-preset-angular/build/HTMLCommentSerializer.js' is deprecated in favor of 'jest-preset-angular/build/serializers/html-comment'
  • Import setup file via import 'jest-preset-angular' is deprecated in favor of import 'jest-preset-angular/setup-jest'

Configuration

📅 Schedule: Branch creation - At any time (no schedule defined), Automerge - At any time (no schedule defined).

🚦 Automerge: Disabled by config. Please merge this manually once you are satisfied.

Rebasing: Whenever PR is behind base branch, or you tick the rebase/retry checkbox.

🔕 Ignore: Close this PR and you won't be reminded about this update again.


  • If you want to rebase/retry this PR, check this box

This PR was generated by Mend Renovate. View the repository job log.

@renovate renovate bot assigned C0ZEN Oct 18, 2021
@renovate renovate bot requested a review from C0ZEN October 18, 2021 23:16
@renovate
Copy link
Author

renovate bot commented Oct 18, 2021

⚠ Artifact update problem

Renovate failed to update an artifact related to this branch. You probably do not want to merge this PR as-is.

♻ Renovate will retry this branch, including artifacts, only when one of the following happens:

  • any of the package files in this branch needs updating, or
  • the branch becomes conflicted, or
  • you click the rebase/retry checkbox if found above, or
  • you rename this PR's title to start with "rebase!" to trigger it manually

The artifact failure details are included below:

File name: package-lock.json
npm ERR! code ERESOLVE
npm ERR! ERESOLVE unable to resolve dependency tree
npm ERR! 
npm ERR! While resolving: yokai@0.0.0
npm ERR! Found: @angular/compiler@11.1.2
npm ERR! node_modules/@angular/compiler
npm ERR!   @angular/compiler@"^11.0.0" from the root project
npm ERR!   peer @angular/compiler@"11.1.2" from @angular/compiler-cli@11.1.2
npm ERR!   node_modules/@angular/compiler-cli
npm ERR!     dev @angular/compiler-cli@"11.1.2" from the root project
npm ERR!     peer @angular/compiler-cli@">=10.0.0" from jest-preset-angular@10.1.0
npm ERR!     node_modules/jest-preset-angular
npm ERR!       dev jest-preset-angular@"10.1.0" from the root project
npm ERR! 
npm ERR! Could not resolve dependency:
npm ERR! peer @angular/compiler@"11.2.14" from @angular/platform-browser-dynamic@11.2.14
npm ERR! node_modules/@angular/platform-browser-dynamic
npm ERR!   @angular/platform-browser-dynamic@"^11.0.0" from the root project
npm ERR!   peer @angular/platform-browser-dynamic@">=10.0.0" from jest-preset-angular@10.1.0
npm ERR!   node_modules/jest-preset-angular
npm ERR!     dev jest-preset-angular@"10.1.0" from the root project
npm ERR! 
npm ERR! Fix the upstream dependency conflict, or retry
npm ERR! this command with --force, or --legacy-peer-deps
npm ERR! to accept an incorrect (and potentially broken) dependency resolution.
npm ERR! 
npm ERR! See /tmp/renovate-cache/others/npm/eresolve-report.txt for a full report.

npm ERR! A complete log of this run can be found in:
npm ERR!     /tmp/renovate-cache/others/npm/_logs/2022-09-25T15_39_57_954Z-debug-0.log

@nx-cloud
Copy link

nx-cloud bot commented Oct 18, 2021

☁️ Nx Cloud Report

Attention: This version of the Nx Cloud GitHub bot will cease to function on July 1st, 2023. An organization admin can update your integration here.

We didn't find any information for the current pull request with the commit 8456a7f.
You might need to set the 'NX_BRANCH' environment variable in your CI pipeline.

Check the Nx Cloud Github Integration documentation for more information.


Sent with 💌 from NxCloud.

@renovate renovate bot force-pushed the renovate/jest-preset-angular-10.x branch from 28a6362 to a184a44 Compare March 7, 2022 09:22
@renovate renovate bot force-pushed the renovate/jest-preset-angular-10.x branch from a184a44 to 8456a7f Compare September 25, 2022 15:40
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

1 participant