-
-
Notifications
You must be signed in to change notification settings - Fork 211
Support Angular 21 #1962
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
Merged
Merged
Support Angular 21 #1962
Conversation
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
5337abb to
0bc5416
Compare
Closed
7 tasks
qmonmert
reviewed
Dec 15, 2025
BREAKING CHANGE: All packages now require Angular 21 Closes #1957
melroy89
reviewed
Dec 17, 2025
BREAKING CHANGE: Requires Jest 30
Users must upgrade:
npm install --save-dev jest@^30.0.0 jest-environment-jsdom@^30.0.0 jsdom@^26.0.0
Also requires tsconfig.spec.json update for moduleResolution compatibility:
{
"compilerOptions": {
"module": "Node16",
"moduleResolution": "Node16",
"isolatedModules": true
}
}
Schema changes:
- testPathPattern renamed to testPathPatterns
- Removed: browser, init, mapCoverage, testURL, timers
Closes #1931
BREAKING CHANGE: zoneless is now the default Apps using zone.js change detection must set zoneless: false in angular.json. globalMocks option now only supports matchMedia. The styleTransform, getComputedStyle, and doctype mocks have been removed as Jest 30's jsdom supports these natively. Closes #1934
BREAKING CHANGE: configPath option renamed to config
The config option now accepts:
- File path (string): "jest.config.js"
- JSON string: '{"verbose": true}'
- Inline object in angular.json
Closes #108
1804d15 to
69a55ba
Compare
|
@just-jeb can you tell when there will be a new version of the @angular-builders/jest package on NPM? Currently its still version 20 supporting Angular 20 and Jest 29. Thanks! |
Contributor
|
@berkon it's released under v21.0.0-beta.1 |
Owner
Author
|
@berkon Currently it's available under the |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
PR Checklist
Please check if your PR fulfills the following requirements:
PR Type
What kind of change does this PR introduce?
[ ] Bugfix
[x] Feature
[ ] Code style update (formatting, local variables)
[ ] Refactoring (no functional changes, no api changes)
[ ] Build related changes
[ ] CI related changes
[ ] Documentation content changes
[ ] Other... Please describe:
What is the current behavior?
Packages support Angular 20 with Jest 29 and zone.js-based testing.
Issue Number: #1957, #1931, #1934, #108
What is the new behavior?
@angular-builders/jestto use Jest 30 via jest-preset-angular v16zonelessoption (default:true)configPathtoconfigwith inline object/JSON supportDoes this PR introduce a breaking change?
[x] Yes
[ ] No
Breaking Changes
All Packages
@angular-builders/jest
Jest 30 Required
npm install --save-dev jest@^30.0.0 jest-environment-jsdom@^30.0.0 jsdom@^26.0.0 tsconfig.spec.json Update Required { "compilerOptions": { "module": "Node16", "moduleResolution": "Node16", "isolatedModules": true } } Zoneless Testing (New Default) - zoneless option added, defaults to true - Apps using zone.js change detection must set zoneless: false Renamed/Removed Options - configPath → config (now also supports inline objects) - testPathPattern → testPathPatterns - Removed: browser, init, mapCoverage, testURL, timers - globalMocks now only supports matchMedia @angular-builders/custom-esbuild - buildTarget and tsConfig no longer required in unit-test builder schemaOther information
Closes #1957, #1931, #1934, #108