Skip to content

Conversation

@renovate
Copy link
Contributor

@renovate renovate bot commented Jul 7, 2025

This PR contains the following updates:

Package Change Age Confidence
@types/jest (source) 29.5.14 -> 30.0.0 age confidence
jest-preset-angular (source) 14.6.1 -> 15.0.3 age confidence

Release Notes

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

v15.0.3

Compare Source

Bug Fixes
  • handle processWithEsbuild transform option (6779107)

v15.0.2

Compare Source

Bug Fixes

v15.0.1

Compare Source

Bug Fixes

v15.0.0

Compare Source

Bug Fixes
  • fix(serializers): generated id="root{n}" should be removed (a6b908f)
Features
  • feat: allow to customize testEnvironment via preset creator functions (80c95e8)
  • feat: upgrade jest to 30 (51df6ec)
Code Refactoring
  • refactor: mark jest-environment-jsdom as peer dependency (f9e2b70)
  • refactor: drop support for jsdom <22 (da9cb15)
  • refactor: drop support for typescript <5.4 (873ab73)
  • refactor: drop support for Angular <17 (3a60492)
  • refactor: drop support for Node.js <18 (aeef774)
  • refactor: remove defaults and defaults-esm presets (94dd3b1)
  • refactor: remove setup-jest files (6bf89a4)
  • refactor: remove global setup script with ngcc (35819c9)
BREAKING CHANGES
  • Jest 30 is required
  • Minimum supported version for JSDOM is 26
  • ng-jest-resolver is no longer needed for Jest 30 therefore it was removed
  • jsdom dep is now MANDATORY peer dependency. Users are required to install jsdom explicitly
  • jest-environment-jsdom is now MANDATORY dependency. Users are required to install jest-environment-jsdom explicitly
  • Various legacy documentation pages were removed.
  • Snapshot generation is affected by (a6b908f). One should update component snapshots via -u Jest CLI option. Since this change only removes the root id, it shouldn't affect the quality of snapshots in general.
  • The supported NodeJs versions are ^18.19.1 || ^20.11.1 || >=22.0.0.
  • The minimum supported version for Angular is 18 following Angular support policy https://angular.dev/reference/releases#actively-supported-versions
  • The minimum supported version for jsdom is 22
  • The minimum supported version of TypeScript is 5.5 following the support version from Angular 18
  • Running ngcc is not required for Angular 16+ project
  • Use createCjsPreset as a replacement for defaults preset
  • Use createEsmPreset as a replacement for defaults-esm preset
  • Use setupZoneTestEnv as a replacement for zone test environment setup
  • Use setupZonelessTestEnv as a replacement for zoneless test environment setup

14.6.2 (2025-10-17)

Bug Fixes
  • handle processWithEsbuild transform option (6779107)

14.6.1 (2025-07-21)

Bug Fixes

14.6.0 (2025-06-02)

Features
  • feat: add support for angular 20 (e041857)

14.5.5 (2025-04-15)

Bug Fixes
  • fix: allow name exports for presets subpath (9100baf)

v14.6.2

Compare Source

Bug Fixes
  • fix(serializers): generated id="root{n}" should be removed (a6b908f)
Features
  • feat: allow to customize testEnvironment via preset creator functions (80c95e8)
  • feat: upgrade jest to 30 (51df6ec)
Code Refactoring
  • refactor: mark jest-environment-jsdom as peer dependency (f9e2b70)
  • refactor: drop support for jsdom <22 (da9cb15)
  • refactor: drop support for typescript <5.4 (873ab73)
  • refactor: drop support for Angular <17 (3a60492)
  • refactor: drop support for Node.js <18 (aeef774)
  • refactor: remove defaults and defaults-esm presets (94dd3b1)
  • refactor: remove setup-jest files (6bf89a4)
  • refactor: remove global setup script with ngcc (35819c9)
BREAKING CHANGES
  • Jest 30 is required
  • Minimum supported version for JSDOM is 26
  • ng-jest-resolver is no longer needed for Jest 30 therefore it was removed
  • jsdom dep is now MANDATORY peer dependency. Users are required to install jsdom explicitly
  • jest-environment-jsdom is now MANDATORY dependency. Users are required to install jest-environment-jsdom explicitly
  • Various legacy documentation pages were removed.
  • Snapshot generation is affected by (a6b908f). One should update component snapshots via -u Jest CLI option. Since this change only removes the root id, it shouldn't affect the quality of snapshots in general.
  • The supported NodeJs versions are ^18.19.1 || ^20.11.1 || >=22.0.0.
  • The minimum supported version for Angular is 18 following Angular support policy https://angular.dev/reference/releases#actively-supported-versions
  • The minimum supported version for jsdom is 22
  • The minimum supported version of TypeScript is 5.5 following the support version from Angular 18
  • Running ngcc is not required for Angular 16+ project
  • Use createCjsPreset as a replacement for defaults preset
  • Use createEsmPreset as a replacement for defaults-esm preset
  • Use setupZoneTestEnv as a replacement for zone test environment setup
  • Use setupZonelessTestEnv as a replacement for zoneless test environment setup

14.6.2 (2025-10-17)

Bug Fixes
  • handle processWithEsbuild transform option (6779107)

14.6.1 (2025-07-21)

Bug Fixes

14.6.0 (2025-06-02)

Features
  • feat: add support for angular 20 (e041857)

14.5.5 (2025-04-15)

Bug Fixes
  • fix: allow name exports for presets subpath (9100baf)

Configuration

📅 Schedule: Branch creation - "every 2nd week starting on the 2 week of the year before 4am on Monday" (UTC), Automerge - At any time (no schedule defined).

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

Rebasing: Whenever PR becomes conflicted, or you tick the rebase/retry checkbox.

👻 Immortal: This PR will be recreated if closed unmerged. Get config help if that's undesired.


  • 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 requested a review from a team July 7, 2025 03:43
@bitwarden-bot bitwarden-bot changed the title [deps] SM: Update @types/jest to v30 [SM-1520] [deps] SM: Update @types/jest to v30 Jul 7, 2025
@bitwarden-bot
Copy link

Internal tracking:

@renovate renovate bot changed the title [SM-1520] [deps] SM: Update @types/jest to v30 [deps] SM: Update @types/jest to v30 Jul 7, 2025
@renovate renovate bot force-pushed the renovate/major-jest branch from 7d2139b to 06f487e Compare July 29, 2025 13:29
@renovate renovate bot changed the title [deps] SM: Update @types/jest to v30 [deps] SM: Update jest (major) Jul 29, 2025
@renovate
Copy link
Contributor Author

renovate bot commented Jul 29, 2025

⚠️ 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 error code ERESOLVE
npm error ERESOLVE could not resolve
npm error
npm error While resolving: @bitwarden/[email protected]
npm error Found: [email protected]
npm error node_modules/jest
npm error   peerOptional jest@"^29.5.0" from @angular-devkit/[email protected]
npm error   node_modules/@angular-devkit/build-angular
npm error     dev @angular-devkit/build-angular@"19.2.14" from the root project
npm error     peer @angular-devkit/build-angular@">=15.0.0 < 20.0.0" from @storybook/[email protected]
npm error     node_modules/@storybook/angular
npm error       dev @storybook/angular@"8.6.12" from the root project
npm error   jest@"^29.6.4" from @storybook/[email protected]
npm error   node_modules/@storybook/test-runner
npm error     dev @storybook/test-runner@"0.22.0" from the root project
npm error   4 more (jest-mock-extended, jest-playwright-preset, ...)
npm error
npm error Could not resolve dependency:
npm error dev jest-preset-angular@"15.0.3" from the root project
npm error
npm error Conflicting peer dependency: [email protected]
npm error node_modules/jest
npm error   peer jest@"^30.0.0" from [email protected]
npm error   node_modules/jest-preset-angular
npm error     dev jest-preset-angular@"15.0.3" from the root project
npm error
npm error Fix the upstream dependency conflict, or retry
npm error this command with --force or --legacy-peer-deps
npm error to accept an incorrect (and potentially broken) dependency resolution.
npm error
npm error
npm error For a full report see:
npm error /runner/cache/others/npm/_logs/2025-11-19T18_29_19_709Z-eresolve-report.txt
npm error A complete log of this run can be found in: /runner/cache/others/npm/_logs/2025-11-19T18_29_19_709Z-debug-0.log

@renovate renovate bot force-pushed the renovate/major-jest branch 2 times, most recently from 3b970f8 to 258954c Compare August 13, 2025 13:06
@renovate renovate bot force-pushed the renovate/major-jest branch from 258954c to 7b3ee1d Compare August 19, 2025 12:10
@renovate renovate bot force-pushed the renovate/major-jest branch from 7b3ee1d to 7136edc Compare August 31, 2025 11:44
@renovate renovate bot force-pushed the renovate/major-jest branch 2 times, most recently from b92eec3 to 2951a17 Compare September 25, 2025 14:14
@renovate renovate bot force-pushed the renovate/major-jest branch from 2951a17 to 6e59f32 Compare October 8, 2025 12:56
@renovate renovate bot force-pushed the renovate/major-jest branch 2 times, most recently from 8c86167 to 1a0a0fe Compare October 22, 2025 20:19
@renovate renovate bot force-pushed the renovate/major-jest branch from 1a0a0fe to b648e53 Compare October 24, 2025 10:22
@renovate renovate bot force-pushed the renovate/major-jest branch 2 times, most recently from 9a6c619 to f19f5ed Compare November 10, 2025 15:04
@github-actions
Copy link
Contributor

github-actions bot commented Nov 11, 2025

Logo
Checkmarx One – Scan Summary & Detailsabe9165d-ce59-4b2d-87f4-c9a3f9832d2f

Great job! No new security vulnerabilities introduced in this pull request

@claude
Copy link

claude bot commented Nov 14, 2025

Claude finished @renovate[bot]'s task —— View job


PR Review: Jest Major Version Update

Summary

This PR attempts to update @types/jest and jest-preset-angular to versions that require Jest 30, but the project currently uses Jest 29.7.0 (installed via @nx/[email protected]). The dependency conflict prevents the update from being applied.

Findings

Finding 1: ❌ Peer dependency conflict blocks the update - [email protected] requires Jest 30, but the project uses Jest 29.7.0 (package.json:69, package.json:121)

Conflict Details

The Renovate error message shows:

Could not resolve dependency:
dev jest-preset-angular@"15.0.3" from the root project

Conflicting peer dependency: [email protected]
node_modules/jest
  peer jest@"^30.0.0" from [email protected]

Jest is not directly declared in package.json - it's provided indirectly through @nx/[email protected], which installs Jest 29.7.0.

Finding 2: ❌ Multiple dependencies need coordinated updates - upgrading jest-preset-angular requires upgrading Jest, ts-jest, and potentially @nx/jest (package.json:138, package.json:174)

Breaking Changes in jest-preset-angular 15.0.0

According to the release notes:

  • Requires Jest 30+ (currently 29.7.0)
  • Requires jsdom 26+ (currently 26.1.0 ✓)
  • Requires TypeScript 5.5+ (currently 5.8.3 ✓)
  • Requires Angular 18+ (currently 19.2.14 ✓)
  • Requires Node.js 18.19.1+/20.11.1+/22.0.0+ (currently ~22 ✓)
  • jest-environment-jsdom becomes mandatory peer dependency
  • Removed defaults and defaults-esm presets (replaced with createCjsPreset/createEsmPreset)
  • Removed setup-jest files (replaced with setupZoneTestEnv/setupZonelessTestEnv)
  • Snapshots will change due to root ID removal

Finding 3: ⚠️ Configuration migration required - the preset config uses createCjsPreset which exists in v15, but other Angular projects may need updates (libs/shared/jest.config.angular.js:3)

Finding 4: 💭 Should ts-jest be updated alongside? - Currently at 29.4.5, may need update to support Jest 30 (package.json:138)

Finding 5: 💭 What is the strategy for @nx/jest? - Need to verify if Nx 21.3.11 supports Jest 30, or if Nx also needs updating (package.json:174)

Recommendations

Option 1: Complete Jest 30 Migration (Recommended)

  1. Update @nx/jest to a version that supports Jest 30 (check Nx compatibility)
  2. Update or add explicit jest dependency to version 30.x
  3. Update ts-jest to version compatible with Jest 30
  4. Add jest-environment-jsdom as explicit dev dependency
  5. Apply this PR's changes
  6. Update all Jest configuration files if needed
  7. Update snapshots across the codebase (npm test -- -u)

Option 2: Close This PR

  • Defer Jest 30 migration until Nx provides official support
  • Continue using jest-preset-angular 14.6.x until ready for full migration

Option 3: Partial Update (Not Recommended)

  • Update only @types/jest to 30.0.0
  • Keep jest-preset-angular at 14.6.x
  • Risk: Type definitions may not perfectly match Jest 29 runtime

Test Plan Concern

💭 This PR lacks a test plan. For a major dependency update affecting the entire test infrastructure, the PR should document:

  • Which test suites were run to verify compatibility
  • Any snapshot changes observed
  • Performance impact assessment

Verdict: This PR cannot be merged as-is due to the peer dependency conflict. A broader Jest 30 migration effort is needed, potentially coordinated with Nx updates.

@renovate renovate bot force-pushed the renovate/major-jest branch 3 times, most recently from 18a8e3d to aa32367 Compare November 19, 2025 15:09
"jest-junit": "16.0.0",
"jest-mock-extended": "3.0.7",
"jest-preset-angular": "14.6.1",
"jest-preset-angular": "15.0.3",
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

❌ This update requires Jest 30.x, but the project currently uses Jest 29.7.0 (provided by @nx/[email protected]). This creates a peer dependency conflict that blocks installation.

To proceed with this update, you'll need to:

  1. Upgrade Jest to version 30.x
  2. Update ts-jest to a Jest 30-compatible version
  3. Add jest-environment-jsdom as an explicit peer dependency
  4. Verify @nx/jest compatibility with Jest 30

Consider whether this should be part of a coordinated Jest 30 migration effort rather than an isolated update.

"@types/firefox-webext-browser": "120.0.4",
"@types/inquirer": "8.2.10",
"@types/jest": "29.5.14",
"@types/jest": "30.0.0",
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

⚠️ Updating to @types/[email protected] while using Jest 29.7.0 creates a version mismatch. The type definitions are for Jest 30 APIs, which may not perfectly align with the Jest 29 runtime.

This could lead to:

  • Type checking passing for APIs that don't exist in Jest 29
  • Missing type errors for deprecated Jest 29 patterns
  • IntelliSense suggesting Jest 30 features that aren't available

Consider keeping @types/[email protected] until the full Jest 30 migration is complete.

@cd-bitwarden cd-bitwarden changed the title [deps] SM: Update jest (major) rebase [deps] SM: Update jest (major) Nov 19, 2025
@renovate renovate bot force-pushed the renovate/major-jest branch from ae4803e to 9b64532 Compare November 19, 2025 18:23
@renovate renovate bot changed the title rebase [deps] SM: Update jest (major) [deps] SM: Update jest (major) Nov 19, 2025
@renovate renovate bot force-pushed the renovate/major-jest branch from 9b64532 to c4d9fc1 Compare November 19, 2025 18:29
@cd-bitwarden
Copy link
Contributor

We cannot update to jest 30 until the following dependency updates have happened:

Update @nx/jest to a version that supports Jest 30 (check Nx compatibility)
Update ts-jest to version compatible with Jest 30

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants