-
Notifications
You must be signed in to change notification settings - Fork 11.9k
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
fix(@angular-devkit/build-angular): expand jest
and jest-environment-jsdom
to allow version 30
#30761
Changes from all commits
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,13 @@ | ||
import { applyJestBuilder } from '../../utils/jest'; | ||
import { ng, silentNpm } from '../../utils/process'; | ||
|
||
export default async function (): Promise<void> { | ||
await applyJestBuilder(); | ||
await silentNpm('install', 'jest@29.5.0', 'jest-environment-jsdom@29.5.0', '--save-dev'); | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe 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. There was a problem hiding this comment. Choose a reason for hiding this commentThe 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. |
||
|
||
const { stderr } = await ng('test'); | ||
|
||
if (!stderr.includes('Jest builder is currently EXPERIMENTAL')) { | ||
throw new Error(`No experimental notice in stderr.\nSTDERR:\n\n${stderr}`); | ||
} | ||
} |