npm
npmjs.com › package › jest-preset-angular
jest-preset-angular - npm
4 days ago - A preset of Jest configuration for Angular projects.
» npm install jest-preset-angular
Published Jun 09, 2026
Version 16.2.0
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
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
Newest 'jest-preset-angular' Questions - Stack Overflow
Stack Overflow | The World’s Largest Online Community for Developers More on stackoverflow.com
What about the new Jest integration?
I use Jest in an Angular library repo without ng-cli and without Nx - all you need is jest-preset-angular library and a few configs. You can check all the related configs here: https://github.com/e-oz/ngx-collection Running tests: npm test More on reddit.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
GitHub
github.com › thymikee › jest-preset-angular › blob › main › CHANGELOG.md
jest-preset-angular/CHANGELOG.md at main · thymikee/jest-preset-angular
One should update component snapshots via -u Jest CLI option. Since this change only removes the root id, it shouldn't affect the quality of snapshots in general. The supported NodeJs versions are ^18.19.1 || ^20.11.1 || >=22.0.0. The minimum supported version for Angular is 18 following Angular support policy https://angular.dev/reference/releases#actively-supported-versions ... Using preset: 'jest-preset-angular' is deprecated.
Author thymikee
GitHub
github.com › thymikee › jest-preset-angular
GitHub - thymikee/jest-preset-angular: Jest configuration preset for Angular projects. · GitHub
Starred by 917 users
Forked by 306 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 provides very opinionated presets and based on what we found to be useful. ... The current best practice for using presets is to call one of the utility functions below to create (and optionally extend) presets.
Thymikee
thymikee.github.io › installation
Installation | jest-preset-angular
1 week ago - Angular doesn't support native async/await in testing with target higher than ES2016, see https://github.com/angular/components/issues/21632#issuecomment-764975917 ... 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
Reddit
reddit.com › r/angular › using jest with angular 18
r/angular on Reddit: Using Jest with angular 18
July 16, 2024 -
Im currently working with implementing testing on my work project and get it to work but since we are using angular 18 with signals inputs/outputs/etc. Does anyone have any experience, resource or anything to share?
Top answer 1 of 5
9
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
2 of 5
4
Stick with jasmine until angular team implements proper jest support. They let you switch to jest but without testing coverage. Jest only has community support which is immature.
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 - module.exports = { preset: 'jest-preset-angular', setupFilesAfterEnv: ['<rootDir>/setup-jest.ts'], testPathIgnorePatterns: ['<rootDir>/node_modules/', '<rootDir>/dist/'], transform: { '^.+\\.ts$': 'ts-jest', // Only transform .ts files }, transformIgnorePatterns: [ '/node_modules/(?!flat)/', // Exclude modules except 'flat' from transformation ], }; import { setupZoneTestEnv } from 'jest-preset-angular/setup-env/zone'; setupZoneTestEnv(); { "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": "./", ...
UNPKG
unpkg.com › browse › jest-preset-angular@8.3.2 › README.md
UNPKG
Jest preset configuration for Angular projects · github.com/thymikee/jest-preset-angular
Tessl
tessl.io › registry › tessl › npm-jest-preset-angular › files › docs › test-environment.md
15.0.0 • npm-jest-preset-angular • tessl • Registry • Tessl
March 29, 2026 - }; // Or in preset configuration const { createCjsPreset } = require('jest-preset-angular/presets'); module.exports = createCjsPreset({ testEnvironment: 'jest-preset-angular/environments/jest-jsdom-env' });
GitHub
raw.githubusercontent.com › thymikee › jest-preset-angular › master › CHANGELOG.md
https://raw.githubusercontent.com/thymikee/jest-pr...
* Snapshot generation is affected by ([a6b908f](https://github.com/thymikee/jest-preset-angular/commit/a6b908f)). One should update component snapshots via `-u` Jest CLI option. Since this change only removes the root `id`, it shouldn't affect the quality of snapshots in general. * The supported `NodeJs` versions are `^18.19.1 || ^20.11.1 || >=22.0.0`. * The minimum supported version for Angular is **18** following Angular support policy https://angular.dev/reference/releases#actively-supported-versions * The minimum supported version for `jsdom` is **22** * The minimum supported version of `T
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 ·
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 2 other projects in the npm registry using ...
» npm install @angular-builders/jest
Published Jan 14, 2026
Version 21.0.3
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-...