🌐
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: 4 months ago. Start using @angular-builders/jest in your project by running `npm i @angular-builders/jest`. There are ...
      » npm install @angular-builders/jest
    
Published   Jan 14, 2026
Version   21.0.3
🌐
GitHub
github.com › danywalls › example-jest-builder-angular-17
GitHub - danywalls/example-jest-builder-angular-17: example use jest builder with angular17
example use jest builder with angular17. Contribute to danywalls/example-jest-builder-angular-17 development by creating an account on GitHub.
Author   danywalls
Discussions

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
How can I write a Jest unit test for an Angular 17 CanActivateFn guard that rely on createUrlTreeFromSnapshot? - Stack Overflow
My application is running Angular 17.1, and I am using Jest for my unit tests. More on stackoverflow.com
🌐 stackoverflow.com
Jest in v16/v17 is not working on monorepo
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 No response Description I tried to migrate my p... More on github.com
🌐 github.com
2
November 10, 2023
Jest in Angular.
I have it running in a smaller app I just built for work. We have about 85 test suites and 950+ tests, at last count. Takes less than a minute to run. I like Jest better than Karma/Jasmine. More on reddit.com
🌐 r/angular
19
5
December 17, 2024
People also ask

How do I update angular.json to use Jest instead of Karma?
In angular.json, find the test section under your project's architect configuration and change the builder property from the default Karma builder to @angular-builders/jest:run. You can also provide additional Jest options in the options field of that same section.
🌐
danywalls.com
danywalls.com › how-to-configure-jest-in-angular-18
How to Configure Jest in Angular 18 | DanyWalls
How do I replace Karma and Jasmine with Jest in an Angular 18 project?
To replace Karma and Jasmine with Jest in Angular 18, first remove the existing packages by running npm remove karma karma-chrome-launcher karma-jasmine karma-jasmine-html-reporter, then install Jest and its builder with npm i -D jest @types/jest @angular-builders/jest, and finally update the test section in angular.json to point to the Jest builder.
🌐
danywalls.com
danywalls.com › how-to-configure-jest-in-angular-18
How to Configure Jest in Angular 18 | DanyWalls
What npm packages do I need to install to use Jest in Angular?
You need to install three packages as dev dependencies: jest for the test runner itself, @types/jest to get TypeScript type definitions for Jest APIs, and @angular-builders/jest which provides the Angular CLI builder that integrates Jest into the standard ng test workflow.
🌐
danywalls.com
danywalls.com › how-to-configure-jest-in-angular-18
How to Configure Jest in Angular 18 | DanyWalls
🌐
Stackademic
stackademic.com › blog › using-jest-in-angular-17
Using Jest in Angular 17 | Stackademic
December 3, 2023 - With the recent updates in Angular 17, developers have an exciting opportunity to experiment with Jest, a feature that initially made its debut in Angular 16. This blog aims to guide you through the process of utilizing Jest within your Angular ...
🌐
GitHub
github.com › stephanrauh › angular-jest
GitHub - stephanrauh/angular-jest: Testing Angular with Jest · GitHub
The Angular team published experimental support for Jest with Angular 16, but it took me until Angular 17 to take it for a ride. You find the result in the Angular 17 folder.
Starred by 27 users
Forked by 9 users
Languages   HTML 60.5% | TypeScript 35.8% | JavaScript 3.1%
🌐
Beyondjava
beyondjava.net › angular-17-jest
Native Jest Support for Angular 17 (Sneak Preview)
January 1, 2024 - Beyond Java · Sitemap · Talks & Articles · Projects · Guest Posts · About · Legalese · Statistics · (opt out) · Mastodon
🌐
Beyondjava
beyondjava.net › angular-17-jest-mono-repo-just-jeb
How to set up Jest for an Angular 17 monorepo using @ ...
January 1, 2024 - Beyond Java · Sitemap · Talks & Articles · Projects · Guest Posts · About · Legalese · Statistics · (opt out) · Mastodon
🌐
LinkedIn
linkedin.com › pulse › using-jest-angular-17-esteban-luchsinger-ols4e
Using Jest in Angular 17 | Esteban Luchsinger
December 3, 2023 - With the recent updates in Angular 17, developers have an exciting opportunity to experiment with Jest, a feature that initially made its debut in Angular 16. This blog aims to guide you through the process of utilizing Jest within your Angular projects, emphasizing its experimental nature and the straightforward setup involved.
Find elsewhere
🌐
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
(7:15) 5 | 6 | describe('CalibrateKeysComponent', () => { > 7 | let component: TestComponent; | ^ 8 | let fixture: ComponentFixture<TestComponent>; 9 | 10 | beforeEach(() => { at constructor (node_modules/@babel/parser/src/parse-error.ts:81:19) at Parser.toParseError [as raise] (node_modules/@babel/parser/src/tokenizer/index.ts:1487:19) at Parser.raise [as semicolon] (node_modules/@babel/parser/src/parser/util.ts:141:10) at Parser.semicolon [as parseVarStatement] (node_modules/@babel/parser/src/parser/statement.ts:1201:10) at Parser.parseVarStatement [as parseStatementContent] (node_modules/@b
🌐
Stack Overflow
stackoverflow.com › questions › 78087941 › how-can-i-write-a-jest-unit-test-for-an-angular-17-canactivatefn-guard-that-rely
How can I write a Jest unit test for an Angular 17 CanActivateFn guard that rely on createUrlTreeFromSnapshot? - Stack Overflow
import { fakeAsync, TestBed, tick } from '@angular/core/testing'; import { ActivatedRoute, CanActivateFn, RouterStateSnapshot, UrlTree } from '@angular/router'; import { delay, noop, Observable, of } from 'rxjs'; import { cold } from 'jasmine-marbles'; import { RouterTestingModule } from '@angular/router/testing'; import { CoreFacade } from '@mylib/core'; import { allowNaviGuard } from './allowNavi.guard'; describe('allowNaviGuard', () => { let facade: CoreFacade; let route: ActivatedRoute; const executeGuard: CanActivateFn = (...guardParameters) => TestBed.runInInjectionContext(() => allowNav
🌐
DanyWalls
danywalls.com › how-to-configure-jest-in-angular-18
How to Configure Jest in Angular 18 | DanyWalls
November 25, 2023 - To run tests in an Angular 17 project without installing it, you can use the npx command along with Jasmine and Karma. To accomplish this, simply execute the following command: npx ng test. Our goal is to use the Jest Builder, but before we do that, we must remove Karma and Jasmine from our project.
🌐
GitHub
github.com › thymikee › jest-preset-angular › blob › main › CHANGELOG.md
jest-preset-angular/CHANGELOG.md at main · thymikee/jest-preset-angular
February 27, 2026 - refactor: drop support for Angular <17 (3a60492) refactor: drop support for Node.js <18 (aeef774) refactor: remove defaults and defaults-esm presets (94dd3b1) refactor: remove setup-jest files (6bf89a4) refactor: remove global setup script with ngcc (35819c9) Snapshot generation is affected by (a6b908f).
Author   thymikee
🌐
npm
npmjs.com › package › jest-preset-angular
jest-preset-angular - npm
1 month ago - Jest preset configuration for Angular projects. Latest version: 16.1.4, last published: 24 days ago. Start using jest-preset-angular in your project by running `npm i jest-preset-angular`. There are 58 other projects in the npm registry using jest-preset-angular.
      » npm install jest-preset-angular
    
Published   Apr 09, 2026
Version   16.1.4
🌐
Medium
medium.com › @ayushgrwl365 › jesting-your-angular-app-simplifying-unit-testing-with-jest-324f5bb9e2df
Jesting Your Angular App: Simplifying Unit Testing with Jest
January 20, 2024 - In this comprehensive guide, we will embark on a journey to master Angular testing by exploring the integration of Jest into our Angular applications.
🌐
Beyondjava
beyondjava.net › angular-17-jest-mono-repo-manually
How to set up Jest for an Angular 17 monorepo manually
January 1, 2024 - Beyond Java · Sitemap · Talks & Articles · Projects · Guest Posts · About · Legalese · Statistics · (opt out) · Mastodon
🌐
GitHub
github.com › thymikee › jest-preset-angular
GitHub - thymikee/jest-preset-angular: Jest configuration preset for Angular projects. · GitHub
Jest configuration preset for Angular projects. Contribute to thymikee/jest-preset-angular development by creating an account on GitHub.
Starred by 916 users
Forked by 304 users
Languages   TypeScript 89.7% | JavaScript 7.1% | CSS 2.8%
🌐
Tim Deschryver
timdeschryver.dev › blog › integrate-jest-into-an-angular-application-and-library
Integrate Jest into an Angular application and library
After this post was written, someone pointed me to briebug/jest-schematics, which is an schematic that does all these steps above for your. If you run ng add @briebug/jest it adds and configures jest-preset-angular and removes the karma dependencies and files.
🌐
GitHub
github.com › angular › angular-cli › issues › 26324
Jest in v16/v17 is not working on monorepo · Issue #26324 · angular/angular-cli
November 10, 2023 - I tried to migrate my project from karma to jest and it didn't work. As I successfully did it for another project, I decided to dig a bit. It's working for a single project but not for a mono repo (in v16 and v17) ng new application --create-application false cd application ng g application app1 --ssr false --routing --style=scss ng g application app2 --ssr false --routing --style=scss ... ... "test": { "builder": "@angular-devkit/build-angular:jest", "options": { "tsConfig": "projects/app1/tsconfig.spec.json", "polyfills": ["zone.js", "zone.js/testing"] } } ...
Author   Tiiyto
🌐
DEV Community
dev.to › danywalls › play-with-jest-builder-for-angular-17-experimental-ime
Play with Jest builder for Angular 17 (Experimental) - DEV Community
January 8, 2024 - To run tests in an Angular 17 project without installing it, you can use the npx command along with Jasmine and Karma. To accomplish this, simply execute the following command: npx ng test. Our goal is to use the Jest Builder, but before we do that, we must remove Karma and Jasmine from our project.
🌐
JetBrains
youtrack.jetbrains.com › issue › WEB-64919 › Unable-to-run-jest-tests-with-Angular-17
Unable to run jest tests with Angular 17 : WEB-64919
{{ (>_<) }} This version of your browser is not supported. Try upgrading to the latest stable version. Something went seriously wrong
🌐
Reddit
reddit.com › r/angular › jest in angular.
r/angular on Reddit: Jest in Angular.
December 17, 2024 -

Hello,

I want to hear from the community about Jest tests in Angular.

I have started using it because I listened to some opinions about is fast and "easy" to mock components, services, and so on.

Example:

- I have created a test on a mat toolbar to ensure that some menu items are shown or hidden depending if the user is an admin.

- PR: https://github.com/hseleiro/Organizer/pull/59

- Component: https://github.com/hseleiro/Organizer/blob/test/toolbar-component-jest-test/src/app/shared/components/toolbar.component.ts

- Unit Test: https://github.com/hseleiro/Organizer/blob/test/toolbar-component-jest-test/src/app/shared/components/toolbar.component.spec.ts