I was able to resolve this with two steps.

  1. Install @angular-builders/jest if not using latest version of angular you may want to specify the version ie if on angular 16 run npm install @angular-builders/jest@16 otherwise just a npm install @angular-builders/jest will be enough
  2. update the test.builder in angular.json config to use @angular-builders/jest:run

my final angular.json test config looks as follows:

"test": {
  "builder": "@angular-builders/jest:run",
  "options": {
    "polyfills": [
      "zone.js",
      "zone.js/testing"
    ],
    "tsConfig": "tsconfig.spec.json"
  }
}

Answer from Derrick Awuah on Stack Overflow
🌐
GitHub
github.com › angular › angular-cli › issues › 25668
Support jest cli options when using @angular-devkit/build-angular:jest · Issue #25668 · angular/angular-cli
August 11, 2023 - { "configurations": [ { "type": "node", "name": "vscode-jest-tests.v2", "request": "launch", "console": "integratedTerminal", "internalConsoleOptions": "neverOpen", "cwd": "${workspaceFolder}", "runtimeExecutable": "ng", "args": [ "test", "etips-utils", "--run-in-band", "--watch-all=false", "--test-name-pattern", "${jest.testNamePattern}", "--test-path-pattern", "${jest.testFile}" ] } ] } The project https://github.com/just-jeb/angular-builders implements an approach to allowing jest cli options.
Author   rafagsiqueira
🌐
DEV Community
dev.to › fransaoco › how-to-set-up-jest-in-angular-19-step-by-step-guide-1c2p
How to Set Up Jest in Angular 19 (Step-by-Step Guide) - DEV Community
April 21, 2025 - { "extends": "./tsconfig.json", "compilerOptions": { "outDir": "./out-tsc/spec", "types": ["jest", "node"] }, "include": [ "src/**/*.spec.ts", "src/**/*.d.ts" ] } "test": { "builder": "@angular-devkit/build-angular:jest", "options": { "tsConfig": "tsconfig.spec.json" } } "compilerOptions": { "baseUrl": "./", ...
Discussions

@angular-devkit/build-angular:jest Memory Leak and slower test execution speed on CI
Command test Is this a regression? Yes, this behavior used to work in the previous version The previous version in which this bug was not present was 15 Description Would someone be able to help me... More on github.com
🌐 github.com
12
January 9, 2024
Is Jest still going to be integrated officially with Angular?
As r/iamjediknight (and others) have already mentioned, Vitest is generally considered the more modern tool. It looks like the Angular team is also open to going directly with Vitest, skipping Jest—which, from my side, would be great news. I really hope this happens. More on reddit.com
🌐 r/angular
17
35
March 3, 2025
Build unit tests specifically
In an Angular CLI context, I expect this is probably being way too specific and nuanced with the build process to be useful. As much as I want things to work this way, I get that most users probably don't and it likely isn't worth the configuration and complexity cost. ... area: @angular-devkit/b... More on github.com
🌐 github.com
0
October 25, 2023
unit testing - How to migrate from karma to jest in Angular 17 - Stack Overflow
I have recently found out about this blog post about the experimental jest support since angular 16. Based on what I understood I did the following steps: Installed the following dependencies: npm More on stackoverflow.com
🌐 stackoverflow.com
🌐
GitHub
github.com › angular › angular-cli › issues › 26823
@angular-devkit/build-angular:jest Memory Leak and slower test execution speed on CI · Issue #26823 · angular/angular-cli
January 9, 2024 - area: @angular-devkit/build-angulardevkit/build-angular:jestneeds: repro stepsWe cannot reproduce the issue with the information givenWe cannot reproduce the issue with the information giventype: bug/fix
Author   katedoctor
🌐
Reddit
reddit.com › r/angular › is jest still going to be integrated officially with angular?
r/angular on Reddit: Is Jest still going to be integrated officially with Angular?
March 3, 2025 -

I've been having a nightmare trying to reconfigure an old project's tests from Jasmine/Karma to Jest, because I have many coworkers advocating for it. But I'm surprised to see that while Karma has been deprecated for almost 2 years now, ng new and the refreshed Angular docs still only go over Karma, and make no mention of Jest or other testing frameworks at all https://angular.dev/guide/testing#other-test-frameworks.

This announcement https://blog.angular.dev/moving-angular-cli-to-jest-and-web-test-runner-ef85ef69ceca mentions @angular-devkit/build-angular:jest but I'm not sure if that's worth using - googling it actually points me to https://www.npmjs.com/package/@angular-builders/jest first but I'm not sure if this is something official.

jest-preset-angular also appears in lots of guides but it seems like every guide has a different way to set that up and I find its documentation kind of a nightmare of its own. Doesn't feel particularly futureproof.

Is Jest going to be a passing fad for Angular? Is there any news of deeper, documented integration anytime soon? Is Web Test Runner support at least close to being ready?

🌐
Medium
medium.com › @philip.mutua › setting-up-jest-in-your-angular-16-project-3638ef65f3a3
Setting Up Jest in Your Angular Project | by Philip Mutua | Medium
December 10, 2024 - In this blog, we’ll embark on a journey to harness the power of Jest, a potent testing framework, coupled with jest-preset-angular, to elevate your testing experience in Angular projects. Let's dive in and explore how you can unlock the full potential of testing within your Angular applications. If you haven’t already, use the Angular CLI to create a new Angular project: ng new your-angular-project cd your-angular-project · Go to the Package.json file and remove all these packages · "devDependencies": { "@angular-devkit/build-angular": "^14.2.13", "@angular/cli": "~14.2.13", "@angular/co
🌐
Medium
sergeygultyayev.medium.com › angular-v16-surviving-the-preview-jest-793744b9eb31
Angular v16 surviving the preview. Jest | by Sergey Gultyayev | Medium
August 23, 2023 - To use Jest instead of Jasmine we need to uninstall all Jasmine/Karma dependencies and install Jest npm i jest . After that, we should update the architect.test config in angular.json with the following value: "test": { "builder": "@angular-devkit/build-angular:jest", "options": { "tsConfig": "tsconfig.spec.json", "polyfills": ["zone.js", "zone.js/testing"] } }
🌐
GitHub
github.com › angular › angular-cli › issues › 25189
@angular-devkit/build-angular:jest creates invalid test suite · Issue #25189 · angular/angular-cli
May 11, 2023 - Running tests using ng test with the new @angular-devkit/build-angular:jest builder results always in at least one failed test suite:
Find elsewhere
🌐
npm
npmjs.com › package › @angular-builders › jest
angular-builders/jest
January 14, 2026 - Jest runner for Angular build facade. Allows ng test run with Jest instead of Karma. Latest version: 21.0.3, last published: 3 months ago. Start using @angular-builders/jest in your project by running `npm i @angular-builders/jest`. There are 2 other projects in the npm registry using @angular-builders/jest.
      » npm install @angular-builders/jest
    
Published   Jan 14, 2026
Version   21.0.3
🌐
GitHub
github.com › angular › angular-cli › issues › 25697
Integrate jest-fail-on-console in @angular-devkit/build-angular:jest · Issue #25697 · angular/angular-cli
August 19, 2023 - Integrate the jest-fail-on-console utility into the @angular-devkit/build-angular:jest configuration.
🌐
Angular
blog.angular.dev › moving-angular-cli-to-jest-and-web-test-runner-ef85ef69ceca
Moving Angular CLI to Jest and Web Test Runner | by Doug Parker | Angular Blog
April 27, 2023 - We have seen significant momentum in the Jest ecosystem and are excited to help bring those benefits to the Angular community. Please note that this is still experimental and not quite ready for use in business-critical applications, but you can give it a try by first updating to v16 once it is released and then modifying your `angular.json`: { "projects": { "my-app": { "architect": { "test": { "builder": "@angular-devkit/build-angular:jest", "options": { "tsConfig": "tsconfig.spec.json", "polyfills": ["zone.js", "zone.js/testing"] } } } } } }
🌐
Just JeB
justjeb.com › post › angular-cli-ng-test-with-jest
Angular CLI: “ng test” with Jest in 3 minutes
June 27, 2022 - Due to this fact it’s possible that you favorite IDE will get confused with the typings and will propose you Jasmine types in unit tests. tsconfig.json is the config file that your IDE uses so you have to instruct it explicitly to use Jest typings. Bear in mind that the other side of the coin is that your IDE will propose you Jest types in your e2e tests. In angular.json change @angular-devkit/build-angular:karma to @angular-builders/jest:run:
🌐
DEV Community
dev.to › alfredoperez › angular-10-setting-up-jest-2m0l
Angular 11 - Setting up Jest - DEV Community
December 24, 2020 - "test": { "builder": "@angular-devkit/build-angular:karma", "options": { "main": "src/test.ts", "polyfills": "src/polyfills.ts", "tsConfig": "tsconfig.spec.json", "karmaConfig": "karma.conf.js", "assets": [ "src/favicon.ico", "src/assets" ], "styles": [ "src/styles.scss" ], "scripts": [] } }, ... { "extends": "./tsconfig.json", "compilerOptions": { "outDir": "./out-tsc/spec", "types": [ "jest", "node" ] }, "files": [ "src/polyfills.ts" ], "include": [ "src/**/*.spec.ts", "src/**/*.d.ts" ] }
🌐
Medium
medium.com › angular-in-depth › angular-cli-ng-test-with-jest-in-3-minutes-v2-1060ddd7908d
Angular CLI: “ng test” with Jest in 3 minutes (v2) | by Jenia Barabanov | Angular In Depth | Medium
June 27, 2022 - Due to this fact it’s possible that you favorite IDE will get confused with the typings and will propose you Jasmine types in unit tests. tsconfig.json is the config file that your IDE uses so you have to instruct it explicitly to use Jest typings. Bear in mind that the other side of the coin is that your IDE will propose you Jest types in your e2e tests. 4. In angular.json change @angular-devkit/build-angular:karma to @angular-builders/jest:run :
🌐
GitHub
github.com › angular › angular-cli › issues › 26132
Build unit tests specifically · Issue #26132 · angular/angular-cli
October 25, 2023 - "build-tests": { "builder": "@angular-devkit/build-angular:build-tests", "options": { "buildTarget": "my-app:build", "include": ["**/*.ts"], // Build options specific to tests... } } "test": { "builder": "@angular-devkit/build-angular:jest", "options": { "buildTestsTarget": "my-app:build-tests", // Jest options...
Published   Oct 25, 2023
🌐
GitHub
github.com › just-jeb › angular-builders
GitHub - just-jeb/angular-builders: Angular build facade extensions (Jest and custom webpack configuration) · GitHub
Angular build facade extensions (Jest and custom webpack configuration) - just-jeb/angular-builders
Starred by 1.2K users
Forked by 210 users
Languages   TypeScript 76.6% | JavaScript 23.3% | Shell 0.1%
🌐
Tim Deschryver
timdeschryver.dev › blog › integrate-jest-into-an-angular-application-and-library
Integrate Jest into an Angular application and library
@angular-devkit/build-angular 0.6.8 · @angular-devkit/build-optimizer 0.6.8 · @angular-devkit/core 0.6.8 · @angular-devkit/schematics 0.6.8 · @angular/cli 6.0.8 · @ngtools/webpack 6.0.8 · @schematics/angular 0.6.8 · @schematics/update 0.6.8 · rxjs 6.2.0 ·
🌐
Stack Overflow
stackoverflow.com › questions › 77677713 › how-to-migrate-from-karma-to-jest-in-angular-17
unit testing - How to migrate from karma to jest in Angular 17 - Stack Overflow
npm install jest --save-dev npm install jest-environment-jsdom --save-dev npm install @types/jest --save-dev · In angular.json changed: "test": { "builder": "@angular-devkit/build-angular:karma", .... to: "test": { "builder": "@angular-devkit/build-angular:jest", ...
🌐
Atomic Spin
spin.atomicobject.com › 2022 › 08 › 02 › jest-angular-project
Use Jest to Replace Default Test Runners in an Angular Project
January 11, 2023 - npm i @angular-builders/jest @types/jest jest --save-dev · Next, we can update our angular.json file so that we can continue to use the ng test command to run our tests. Replace the following line "builder": "@angular-devkit/build-angular:karma" in the test node with "builder": "@angular-builders/jest:run".
🌐
DEV Community
dev.to › this-is-angular › angular-testing-in-2023-past-present-and-future-j5m
Angular Testing in 2023 - Past, Present, and Future - DEV Community
July 3, 2023 - Open your angular.json and replace the builder in test, which should have the value @angular-devkit/build-angular:karma to @angular-devkit/build-angular:jest.