🌐
GitHub
github.com › thymikee › jest-preset-angular › blob › main › CHANGELOG.md
jest-preset-angular/CHANGELOG.md at main · thymikee/jest-preset-angular
The supported NodeJs versions are ... https://angular.dev/reference/releases#actively-supported-versions ... Using preset: 'jest-preset-angular' is deprecated....
Author   thymikee
🌐
Medium
medium.com › ngconf › configure-jest-in-angular-18-79765fdb0fae
Step-by-Step Jest Configuration for Angular 18 | ngconf
August 27, 2024 - To use Jest in Angular, you can either set it up with the Angular Jest Runner to run tests with ng test, or configure Jest separately and run tests with the jest command. I prefer not using the Angular Jest Runner because I find it simpler to configure and use Jest on its own. npm install jest \ @types/jest \ @jest/globals \ jest-preset-angular \ --save-dev
Discussions

npm install - Angular 19 upgrade issues - jest-preset-angular. Peer dependency failing - Stack Overflow
Could not resolve dependency: npm ERR! peer @angular/compiler-cli@"^18.0.0" from @angular-devkit/[email protected] npm ERR! node_modules/@angular-devkit/build-angular npm ERR! peer @angular-devkit/build-angular@">=15.0.0 <19.0.0" from [email protected] npm ERR! node_modules/jest-preset-angular ... More on stackoverflow.com
🌐 stackoverflow.com
Newest 'jest-preset-angular' Questions - Stack Overflow
Stack Overflow | The World’s Largest Online Community for Developers More on stackoverflow.com
🌐 stackoverflow.com
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
Using Jest with angular 18
Testing SMART components and SERVICES with Signals and RxJS Has some Jest specifics How do I test Signals (signal / computed / effect) He also has videos on modern routing testing, inject, and standalone. Input Signals in Angular 17.1 - How To Use & Test @ 11:18 More on reddit.com
🌐 r/angular
11
11
July 16, 2024
🌐
npm
npmjs.com › package › jest-preset-angular
jest-preset-angular - npm
May 7, 2026 - A preset of Jest configuration for Angular projects.
      » npm install jest-preset-angular
    
Published   May 07, 2026
Version   16.1.5
🌐
Thymikee
thymikee.github.io › installation
Installation | jest-preset-angular
May 9, 2026 - For ESM configuration, please see more in details with ESM guide. In your project root, create a setup file with following contents: ... Adjust scripts part your package.json to use jest instead of ng, e.g. ... jest-preset-angular uses JSDOM which is different from normal browsers.
🌐
Ng-conf
2022.ng-conf.org › configure-jest-in-angular-18
Configure Jest in Angular 18 – https://2022.ng-conf.org
In this guide, I will show you how to setup Jest in your Angular 18 application · The first thing that you need to do is install all the libraries that you will use to run Jest. To use Jest in Angular, you can either set it up with the Angular Jest Runner to run tests with ng test, or configure Jest separately and run tests with the jest command. I prefer not using the Angular Jest Runner because I find it simpler to configure and use Jest on its own. npm install jest @types/jest @jest/globals jest-preset-angular –save-dev
🌐
GitHub
github.com › thymikee › jest-preset-angular
GitHub - thymikee/jest-preset-angular: Jest configuration preset for Angular projects. · GitHub
A preset of Jest configuration for Angular projects.
Starred by 916 users
Forked by 304 users
Languages   TypeScript 89.7% | JavaScript 7.1% | CSS 2.8%
🌐
Thymikee
thymikee.github.io › presets
Presets | jest-preset-angular
May 9, 2026 - "jest-preset-angular", { "stringifyContentPathRegex": "\\.(html|svg)$", "tsconfig": "<rootDir>/tsconfig.spec.json", "useESM": true · } ] }, "transformIgnorePatterns": ["node_modules/(?!tslib)"] } Node <22.18 · Node 22.18+ jest.config.ts · import type { Config } from 'jest'; import { createEsmPreset } from 'jest-preset-angular/presets'; const presetConfig = createEsmPreset({ //...options ·
🌐
Alfredo Perez
alfredo-perez.dev › setup-jest-in-angular-18
Step-by-Step Jest Configuration for Angular 18
August 27, 2024 - To use Jest in Angular, you can either set it up with the Angular Jest Runner to run tests with ng test, or configure Jest separately and run tests with the jest command. I prefer not using the Angular Jest Runner because I find it simpler to configure and use Jest on its own. npm install jest \ @types/jest \ @jest/globals \ jest-preset-angular \ --save-dev
Find elsewhere
🌐
Stack Overflow
stackoverflow.com › questions › tagged › jest-preset-angular
Newest 'jest-preset-angular' Questions - Stack Overflow
I am getting the following error while trying to do npm install after using the angular's ng update command to update my application from angular 18 to 19. npm ERR! Could not resolve dependency: npm ... ... I'm trying to write jest unit tests for a basic angular component. But I seem to have stumbled on a strange error. A minimal repro is hosted here. When running the test using VS Code and the Jest ... ... I am trying to setup jest with Angular. jest.config.ts: import { pathsToModuleNameMapper } from 'ts-jest/utils'; import type { Config } from 'jest'; const preset = require('jest-preset-angular/jest-...
🌐
UNPKG
unpkg.com › browse › jest-preset-angular@8.3.2 › README.md
UNPKG
# jest-preset-angular [![CircleCI ...dgen.net/dependabot/thymikee/jest-preset-angular?icon=dependabot) A preset of [Jest](http://facebook.github.io/jest) configuration for [Angular](https://angular.io/) projects....
🌐
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?

🌐
Thymikee
thymikee.github.io › esm support
ESM Support | jest-preset-angular
May 7, 2026 - However, there are cases like Angular libraries ESM built files or ESM files which are outside node_modules might not be loaded correctly. To fix that, one can use moduleNameMapper in jest config to instruct Jest to load the correct ESM files or create a custom Jest resolver. Node <22.18 · Node 22.18+ jest.config.ts · import type { Config } from 'jest'; import { createEsmPreset } from 'jest-preset-angular/presets'; export default { //... ...createEsmPreset(), moduleNameMapper: { tslib: 'tslib/tslib.es6.js', '^rxjs': '<rootDir>/node_modules/rxjs/dist/bundles/rxjs.umd.js', }, } satisfies Config; jest.config.ts ·
🌐
Thymikee
thymikee.github.io › introduction
Introduction | jest-preset-angular
April 8, 2026 - jest-preset-angular is Jest preset configuration and TypeScript preprocessor with source map support for Jest that lets you use Jest to test Angular projects.
🌐
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
🌐
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 - #angular #jest #npm · npm install jest jest-preset-angular @types/jest --save-dev · jest: Core testing framework. jest-preset-angular: Adds Angular support for Jest. @types/jest: TypeScript definitions for Jest. npm remove karma ...
🌐
Angular Training
angulartraining.com › home › how to use jest for angular unit tests?
How to use Jest for Angular Unit Tests? | Angular Newsletter
September 13, 2024 - Install Jest, its types, and presets for Angular npm i --save-dev jest @types/jest jest-preset-angular
🌐
npm
npmjs.com › package › @angular-builders › jest
angular-builders/jest
January 14, 2026 - This means that the library you're using doesn't use commonjs module format (which jest expects to see). You will need to implement the recommendations mentioned in jest-preset-angular Troubleshooting Guide.
      » npm install @angular-builders/jest
    
Published   Jan 14, 2026
Version   21.0.3