# jest-preset-angular

> Jest preset configuration for Angular projects

Latest version **17.0.3** (published 2026-10-13) · MIT license · 0 weekly downloads

## Install

```sh
npm install jest-preset-angular
pnpm add jest-preset-angular
yarn add jest-preset-angular
bun add jest-preset-angular
```

## Health

**Score 70/100 (B)** — status: active.

Positive: has types; no vulnerabilities; has provenance; recently updated; high maintenance score; high quality score.

Warnings: low downloads; no esm support.

## Facts

| | |
|---|---|
| Version | 17.0.3 |
| Published | 2026-10-13 |
| First published | 2017-03-30 |
| Weekly downloads | 0 |
| License | MIT |
| TypeScript types | bundled |
| Module format | CommonJS |
| Node | ^20.11.1 \|\| >=22.0.0 |
| Dependencies | 6 |
| Unpacked size | 804.2 KB |
| Known vulnerabilities | 0 |
| Install scripts | no |
| Provenance | attested (GitHub Actions) |
| GitHub stars | 917 |
| Author | Michał Pierzchała |
| Maintainers | thymikee, wtho, anhpnnd |
| Keywords | jest, typescript, angular, testing |

## Links

- npm: https://www.npmjs.com/package/jest-preset-angular
- Repository: https://github.com/thymikee/jest-preset-angular
- Homepage: https://thymikee.github.io/jest-preset-angular
- Issues: https://github.com/thymikee/jest-preset-angular/issues
- npm.io page: https://npm.io/package/jest-preset-angular

## Dependencies (6)

- [ts-jest](https://npm.io/package/ts-jest.md) ^29.4.12
- [bs-logger](https://npm.io/package/bs-logger.md) ^0.2.6
- [jest-util](https://npm.io/package/jest-util.md) ^30.5.1
- [esbuild-wasm](https://npm.io/package/esbuild-wasm.md) >=0.28.0
- [pretty-format](https://npm.io/package/pretty-format.md) ^30.5.1
- [@jest/environment-jsdom-abstract](https://npm.io/package/@jest/environment-jsdom-abstract.md) ^30.5.1

## Alternatives

- [duck](https://npm.io/package/duck.md) — 4.2M weekly downloads
- [ava](https://npm.io/package/ava.md) — 560.2K weekly downloads
- [storybook-addon-module-mock](https://npm.io/package/storybook-addon-module-mock.md) — 71.7K weekly downloads
- [@ethereum-waffle/mock-contract](https://npm.io/package/@ethereum-waffle/mock-contract.md) — 40.0K weekly downloads
- [aws-elasticsearch-connector](https://npm.io/package/aws-elasticsearch-connector.md) — 37.4K weekly downloads

## Recent versions

- 17.0.3 (latest) — 2026-10-13
- 15.0.0-next.0 (next) — 2025-02-28
- 17.0.2 — 2026-10-05
- 17.0.1 — 2026-09-25
- 17.0.0 — 2026-06-16
- 16.2.0 — 2026-06-09
- 16.1.5 — 2026-05-07
- 16.1.4 — 2026-04-09
- 16.1.3 — 2026-04-09
- 16.1.2 — 2026-03-30
- 16.1.1 — 2026-02-28
- 16.1.0 — 2026-02-27
- 16.0.0 — 2025-12-04
- 15.0.3 — 2025-10-17
- 14.6.2 — 2025-10-17
- … 159 more at https://npm.io/package/jest-preset-angular/versions

## README

<h1 align="center">Jest Preset Angular</h1>

<p align="center">A preset of Jest configuration for Angular projects.</p>

<p align="center">
    <a href="https://actions-badge.atrox.dev/thymikee/jest-preset-angular/goto?ref=main"><img alt="Build Status" src="https://img.shields.io/endpoint.svg?url=https%3A%2F%2Factions-badge.atrox.dev%2Fthymikee%2Fjest-preset-angular%2Fbadge%3Fref%3Dmain&style=flat-square" /></a>
    <a href="https://www.npmjs.com/package/jest-preset-angular"><img src="https://img.shields.io/npm/v/jest-preset-angular/latest.svg?style=flat-square" alt="NPM Version" /></a>
    <a href="https://github.com/thymikee/jest-preset-angular/blob/main/LICENSE.md"><img src="https://img.shields.io/npm/l/jest-preset-angular.svg?style=flat-square" alt="GitHub license" /></a>
</p>

> Our online documentation is available at https://thymikee.github.io/jest-preset-angular/

> This is a part of the article: [Testing Angular faster with Jest](https://www.xfive.co/blog/testing-angular-faster-jest/).

## Installation

Check out our [Installation guidance](https://thymikee.github.io/jest-preset-angular/docs/getting-started/installation).

**IMPORTANT**

Angular doesn't support native `async/await` in testing with `target` higher than `ES2016`, see https://github.com/angular/components/issues/21632#issuecomment-764975917

## Migration from Angular < 13

Check out our [Migration from Angular < 13 guidance](https://thymikee.github.io/jest-preset-angular/docs/guides/angular-13+)

## Example projects with base Jest configuration

We have [example apps](https://github.com/thymikee/jest-preset-angular/tree/main/examples) to provide a basic setup to use Jest in an Angular project.
The `examples` folder consist of several example Angular applications from **v13** onwards as well as example projects
with `yarn workspace` or monorepo structure.

## Built With

- [TypeScript](https://www.typescriptlang.org/) - JavaScript that scales
- [Angular](https://angular.dev/) - Deliver web apps with confidence 🚀
- [`ts-jest`](https://kulshekhar.github.io/ts-jest) - Jest transformer for TypeScript

## Authors/maintainers

- **Michał Pierzchała** - [thymikee](https://github.com/thymikee)
- **Ahn** - [ahnpnl](https://github.com/ahnpnl)
- **Thomas** - [wtho](https://github.com/wtho)

See also the list of [contributors](https://github.com/thymikee/jest-preset-angular/contributors) who participated in this project.

## License

This project is licensed under the MIT License - see the [LICENSE.md](LICENSE.md) file for details

---
_Source: https://npm.io/package/jest-preset-angular · Machine-readable twin of the npm.io package page. Health data is recomputed on every publish._
