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
GitHub
github.com › thymikee › jest-preset-angular
GitHub - thymikee/jest-preset-angular: Jest configuration preset for Angular projects. · GitHub
Starred by 916 users
Forked by 304 users
Languages TypeScript 89.7% | JavaScript 7.1% | CSS 2.8%
GitHub
github.com › thymikee › jest-preset-angular › blob › main › CHANGELOG.md
jest-preset-angular/CHANGELOG.md at main · thymikee/jest-preset-angular
Drop support for Node.js version 10 since it becomes EOL on 2021-04-30. Required Node version now is >=12.13.0. Require Jest 27. Users who are using import 'jest-preset-angular' should change to import 'jest-preset-angular/setup-jest'
Author thymikee
DEV Community
dev.to › alfredoperez › angular-10-setting-up-jest-2m0l
Angular 11 - Setting up Jest - DEV Community
December 24, 2020 - This is a quick guide to setup Jest in your new Angular 10 application · npm install jest @types/jest jest-preset-angular --save-dev · npm uninstall karma karma-chrome-launcher karma-coverage-istanbul-reporter karma-jasmine karma-jasmine-html-reporter @types/jasmine @types/jasminewd2 jasmine-core jasmine-spec-reporter ·
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.
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 › thymikee › jest-preset-angular › issues › 421
Upgrade to angular 10 failing · Issue #421 · thymikee/jest-preset-angular
July 20, 2020 - 🐛 Bug Report When upgrading to angular 10, with all the latest libraries in package.json, with node 12, 13 and 14; and also after remaking the project so that it's the same as this example: htt...
Author thymikee
Thymikee
thymikee.github.io › presets
Presets | jest-preset-angular
May 9, 2026 - In Jest, presets are pre-defined configurations that help streamline and standardize the process of setting up testing environments.
Medium
medium.com › @zeeshankhan8838 › unit-testing-angular-with-jest-configuration-e324ec61620c
Jest Configuration in angular. In this article, I am writing about all… | by zeeshan khan | Medium
March 22, 2023 - In this article, I am writing about all the necessary steps you need to do while configuring jest in angular. ... npm uninstall @types/jasmine jasmine-core karma karma-chrome-launcher karma-coverage karma-jasmine karma-jasmine-html-reporter · After uninstalling packages your package.json file looks like this. package.json after removing karma and jasmine packages ... "jest": { "preset": "jest-preset-angular", "setupFilesAfterEnv": [ "<rootDir>/src/setup.jest.ts" ], "testPathIgnorePatterns": [ "<rootDir>/node_modules/", "<rootDir>/dist/" ], "globals": { "ts-jest": { "tsConfig": "<rootDir>/tsconfig.spec.json", "stringifyContentPathRegex": "\\.html$" } } } "scripts": { "ng": "ng", "start": "ng serve", "build": "ng build", "watch": "ng build --watch --configuration development", "test": "jest", "test:watch": "jest --watch", "test:coverage": "jest --coverage" },
Medium
medium.com › @abhijit_chikane › set-up-jest-in-angular-v20-project-zoneless-replace-karma-jasmine-5ddd5552f2cb
Set Up Jest in Angular(v20+) Project (Zoneless, Replace Karma & Jasmine) | by Abhijit Chikane | Medium
September 3, 2025 - This ensures zoneless testing works properly in your Angular app. Tell TypeScript to use Jest types instead of Jasmine: ... import type { Config } from 'jest'; const config: Config = { preset: 'jest-preset-angular', setupFilesAfterEnv: ['<rootDir>/src/setup-jest.ts'], testPathIgnorePatterns: [ '<rootDir>/node_modules/', '<rootDir>/dist/', ], }; export default config;
Thymikee
thymikee.github.io › using with babel
Using with Babel | jest-preset-angular
Install dependencies required by the official Jest documentation for Babel integration. Install @babel/preset-env and add babel.config.js (or modify existing if needed) with the following content: module.exports = function (api) { api.cache(true); const presets = ['@babel/preset-env']; const plugins = []; return { presets, plugins, }; };
Stack Overflow
stackoverflow.com › questions › tagged › jest-preset-angular
Newest 'jest-preset-angular' Questions - Stack Overflow
Today I've started using Jest to UnitTest some of our TypeScript files within our Angular project. After the initial Jest setup was done, creating a test for a pure TypeScript method in our util.ts ... ... Using ng-mocks 13.5.2 with jest-preset-angular 12 and @ngneat/spectator 11 I am getting the below error any time I try to use MockComponents or MockPipe in my spec file.
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
Medium
medium.com › @redin.gaetan › jest-and-angular-cb70ad78ee3d
Install Jest for Angular. A powerful combination, you should try… | by Redin Gaetan | Medium
October 3, 2021 - For months, I only use Jest in my Angular projects. It’s faster, less unexpected behaviors and it offers the snapshot feature which is really a must-have. Try it yourself, you will see that you will leave Karma/Jasmine for it. ... // package.json { ... "jest": { "preset": "jest-preset-angular", "setupTestFrameworkScriptFile": "<rootDir>/setupJest.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.