Support Jest 30 🚀
https://jestjs.io/blog/2025/06/04/jest-30
https://jestjs.io/blog/2025/06/04/jest-30:
--testPathPattern was renamed to --testPathPatterns
Support --testPathPatterns is required for fixing running Jest 30 with angular in JetBrains IDEs.
Reproducing
- Sample ng-jest-30-test-path-pattern.zip
- Install deps:
npm install --force(required--forcefor installation jest 30) - Run tests:
npm test
Changing test-path-pattern to test-path-patterns produces error:
Error: Unknown argument: test-path-patterns
Probable fix
After updating to Jest 30, update parameter name in the schema.json.
Jest 30 will be supported (and even more than that, required) with the next major release.
It's not just about parameter names, it's also about breaking changes in jest-preset-angular, zoneless mode etc.
See #1934 for details.
Yes please.. 👍🏽 whenever I try to upgrade to use v30, I actually get:
├─┬ @angular-devkit/build-angular 20.3.3
│ └── ✕ unmet peer jest@^29.5.0: found 30.2.0
└─┬ @angular-builders/jest 20.0.0
└─┬ jest-preset-angular 14.6.0
└── ✕ unmet peer jest@^29.0.0: found 30.2.0
Simply because @angular-builders/jest only support v29 max.
Much love ❤️ , hopefully we soon see a new major release (November?).