Skip to content

fix(@angular-devkit/build-angular): expand jest and jest-environment-jsdom to allow version 30 #30761

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

Draft
wants to merge 1 commit into
base: main
Choose a base branch
from

Conversation

alan-agius4
Copy link
Collaborator

This commit expands the peer deps of these dependencies to allow version 30.

Closes #30760

@alan-agius4 alan-agius4 added the target: patch This PR is targeted for the next patch release label Jul 22, 2025
@alan-agius4 alan-agius4 requested a review from dgp1130 July 22, 2025 14:37
@alan-agius4 alan-agius4 added the action: review The PR is still awaiting reviews from at least one requested reviewer label Jul 22, 2025
@alan-agius4 alan-agius4 changed the title fix(@angular/build-angular): expand jest and jest-environment-jsdom to allow version 30 fix(@angular-devkit/build-angular): expand jest and jest-environment-jsdom to allow version 30 Jul 22, 2025
@alan-agius4 alan-agius4 removed the action: review The PR is still awaiting reviews from at least one requested reviewer label Jul 22, 2025
…nt-jsdom` to allow version 30

This commit expands the peer deps of these dependencies to allow version 30.

Closes angular#30760
@alan-agius4 alan-agius4 marked this pull request as draft July 22, 2025 15:28
@alan-agius4 alan-agius4 marked this pull request as draft July 22, 2025 15:28

export default async function (): Promise<void> {
await applyJestBuilder();
await silentNpm('install', '[email protected]', '[email protected]', '--save-dev');
Copy link
Collaborator

Choose a reason for hiding this comment

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

Question: Do we need to continue to support v29? Since this is still experimental, I don't think we're on the hook for backwards compatibility yet and it's probably reasonable to limit this to the latest major unless we have reason to believe that will be exceptionally difficult for users to adopt.

Copy link
Collaborator Author

Choose a reason for hiding this comment

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

So it seems that this would need further investigation to get version 30 to work. Let's have a chat about this offline to see the next steps for this builder.

@swierzbicki
Copy link

@dgp1130 @alan-agius4 When support for Jest v30 could be merged?

@alan-agius4
Copy link
Collaborator Author

This would require some further investigation and work to land as some tests are failing with the latest jest version.

@swierzbicki
Copy link

@alan-agius4 Sure. I understand that. But the question is - when?
Are we talking about days, weeks.....months? 🤔

It would be nice to know what are the plans for that support :) Don't want to check this PR every day :D

@kstrasters-pj
Copy link

@alan-agius4 Sure. I understand that. But the question is - when? Are we talking about days, weeks.....months? 🤔

It would be nice to know what are the plans for that support :) Don't want to check this PR every day :D

on the right there is a "Subscribe" button where you can opt in to getting updates on the status and comments of this PR to avoid having to check manually.

with that being said a timeline would be pretty cool as this is holding up my teams update to Jest 30 =)

@dgp1130
Copy link
Collaborator

dgp1130 commented Aug 1, 2025

We haven't had a detailed investigation or discussion just yet. When we have more information to share, we'll share it.

Also just a friendly reminder that the @angular-devkit/build-angular:jest builder is still experimental. We appreciate devs trying it out and giving feedback, but it is not recommended for load-bearing development workflows at this time.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
area: @angular-devkit/build-angular target: patch This PR is targeted for the next patch release
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Support for jest v30
4 participants