# @vitest/pretty-format

> Fork of pretty-format with support for ESM

Latest version **5.1.0** (published 2026-11-02) · MIT license · 0 weekly downloads

## Install

```sh
npm install @vitest/pretty-format
pnpm add @vitest/pretty-format
yarn add @vitest/pretty-format
bun add @vitest/pretty-format
```

## Health

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

Positive: has types; esm support; no vulnerabilities; has provenance; recently updated; high maintenance score; popular repo.

Warnings: low downloads.

## Facts

| | |
|---|---|
| Version | 5.1.0 |
| Published | 2026-11-02 |
| First published | 2024-07-10 |
| Weekly downloads | 0 |
| License | MIT |
| TypeScript types | bundled |
| Module format | ESM + CommonJS |
| Dependencies | 1 |
| Unpacked size | 51.8 KB |
| Known vulnerabilities | 0 |
| Install scripts | no |
| Provenance | attested (GitHub Actions) |
| GitHub stars | 17324 |
| Maintainers | ariperkkio, antfu, hiogawa, oreanno, yyx990803 |
| Keywords | vitest, test, pretty, pretty-format |

## Links

- npm: https://www.npmjs.com/package/@vitest/pretty-format
- Repository: https://github.com/vitest-dev/vitest
- Homepage: https://github.com/vitest-dev/vitest/tree/main/packages/pretty-format
- Issues: https://github.com/vitest-dev/vitest/issues
- Funding: https://opencollective.com/vitest
- npm.io page: https://npm.io/package/@vitest/pretty-format

## Dependencies (1)

- [tinyrainbow](https://npm.io/package/tinyrainbow.md) ^3.2.0

## 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

- 5.1.0 (latest) — 2026-11-02
- 5.1.0-beta.1 (beta) — 2026-10-19
- 4.1.12 (V4) — 2026-10-15
- 5.0.0-rc.4 (rc) — 2026-08-31
- 3.2.7 (V3) — 2026-07-06
- 5.0.5 — 2026-10-15
- 5.0.4 — 2026-10-12
- 5.0.3 — 2026-09-30
- 5.0.2 — 2026-09-25
- 5.0.1 — 2026-09-15
- 5.0.0 — 2026-09-03
- 5.0.0-rc.3 — 2026-08-28
- 4.1.11 — 2026-08-18
- 5.0.0-rc.2 — 2026-08-17
- 5.0.0-rc.1 — 2026-08-11
- … 116 more at https://npm.io/package/@vitest/pretty-format/versions

## README

# @vitest/pretty-format

[![NPM version](https://img.shields.io/npm/v/@vitest/pretty-format?color=a1b858&label=)](https://npmx.dev/package/@vitest/pretty-format)

Vitest's fork of Jest's [`pretty-format`](https://npmx.dev/package/pretty-format).

[GitHub](https://github.com/vitest-dev/vitest/tree/main/packages/pretty-format) | [Documentation](https://github.com/vitest-dev/vitest/blob/main/packages/pretty-format/USAGE.md)

---
_Source: https://npm.io/package/@vitest/pretty-format · Machine-readable twin of the npm.io package page. Health data is recomputed on every publish._
