# @nuxt/test-utils

> Test utilities for Nuxt

Latest version **4.4.0** (published 2026-11-08) · MIT license · 0 weekly downloads

## Install

```sh
npm install @nuxt/test-utils
pnpm add @nuxt/test-utils
yarn add @nuxt/test-utils
bun add @nuxt/test-utils
```

## Health

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

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

Warnings: low downloads.

## Facts

| | |
|---|---|
| Version | 4.4.0 |
| Published | 2026-11-08 |
| First published | 2020-10-02 |
| Weekly downloads | 0 |
| License | MIT |
| TypeScript types | bundled |
| Module format | ESM |
| Node | ^20.19.0 \|\| ^22.12.0 \|\| >=24.0.0 |
| Dependencies | 20 |
| Unpacked size | 165.7 KB |
| Known vulnerabilities | 0 |
| Install scripts | no |
| Provenance | attested (GitHub Actions) |
| GitHub stars | 445 |
| Maintainers | danielroe |

## Links

- npm: https://www.npmjs.com/package/@nuxt/test-utils
- Repository: https://github.com/nuxt/test-utils
- Homepage: https://github.com/nuxt/test-utils#readme
- Issues: https://github.com/nuxt/test-utils/issues
- npm.io page: https://npm.io/package/@nuxt/test-utils

## Dependencies (20)

- [ufo](https://npm.io/package/ufo.md) ^1.6.4
- [defu](https://npm.io/package/defu.md) ^6.1.7
- [pathe](https://npm.io/package/pathe.md) ^2.0.3
- [ofetch](https://npm.io/package/ofetch.md) ^1.5.1
- [radix3](https://npm.io/package/radix3.md) ^1.1.2
- [consola](https://npm.io/package/consola.md) ^3.4.2
- [exsolve](https://npm.io/package/exsolve.md) ^1.2.0
- [std-env](https://npm.io/package/std-env.md) ^4.3.0
- [tinyexec](https://npm.io/package/tinyexec.md) ^1.3.1
- [unplugin](https://npm.io/package/unplugin.md) ^3.7.0
- [@nuxt/kit](https://npm.io/package/@nuxt/kit.md) ^4.6.3
- [oxc-walker](https://npm.io/package/oxc-walker.md) ^1.1.1
- [magic-string](https://npm.io/package/magic-string.md) ^1.4.5
- [@clack/prompts](https://npm.io/package/@clack/prompts.md) 1.8.1
- [fake-indexeddb](https://npm.io/package/fake-indexeddb.md) ^6.2.7
- [get-port-please](https://npm.io/package/get-port-please.md) ^3.2.0
- [perfect-debounce](https://npm.io/package/perfect-debounce.md) ^2.1.0
- [@nuxt/devtools-kit](https://npm.io/package/@nuxt/devtools-kit.md) ^3.4.4
- [vitest-environment-nuxt](https://npm.io/package/vitest-environment-nuxt.md) 2.0.0
- [package-manager-detector](https://npm.io/package/package-manager-detector.md) ^1.9.0

## Recent versions

- 4.4.0 (latest) — 2026-11-08
- 3.9.0-alpha.3 (alpha) — 2023-12-19
- 4.3.4 — 2026-10-16
- 4.3.3 — 2026-10-02
- 4.3.2 — 2026-09-07
- 4.3.1 — 2026-09-07
- 4.3.0 — 2026-09-07
- 4.2.0 — 2026-08-27
- 4.1.0 — 2026-07-27
- 4.0.3 — 2026-04-27
- 4.0.2 — 2026-04-09
- 4.0.1 — 2026-04-08
- 4.0.0 — 2026-02-07
- 3.23.0 — 2026-01-06
- 3.22.0 — 2026-01-04
- … 85 more at https://npm.io/package/@nuxt/test-utils/versions

## README

# Nuxt Test Utils

[![nuxt.care health](https://img.shields.io/endpoint?url=https://nuxt.care/api/badge/test-utils)](https://nuxt.care/?search=test-utils)


🧪 [Nuxt](https://nuxt.com/) Test Utils

## Overview

Nuxt offers first-class support for e2e and unit testing of your Nuxt applications.

Nuxt Test Utils is currently powering [the tests we use on Nuxt itself](https://github.com/nuxt/nuxt/tree/main/test), as well as tests used throughout the module ecosystem.

You can find out more about how to use Nuxt Test Utils:

- in [a general overview](https://nuxt.com/docs/getting-started/testing)
- in [an in-depth guide for module authors](https://nuxt.com/docs/4.x/guide/modules/testing)

## License

[MIT](./LICENSE)

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