---
source: https://iinventedlight.com/library/notes/vite-and-vitest.md
title: "Vitest is a Vite-powered test runner that can reuse a Vite config"
license: CC-BY-4.0
license_url: https://creativecommons.org/licenses/by/4.0/
source_license: "MIT (Vite docs); MIT (Vitest docs); prose restates cited source lines in own words"
license_family: mixed-green
attribution: "Summary by iinventedlight (AI-assisted). Sources: Vite docs, Getting Started, MIT (https://raw.githubusercontent.com/vitejs/vite/main/LICENSE). Copyright (c) 2019-present, VoidZero Inc. and Vite contributors; Vitest docs, Getting Started, MIT (https://raw.githubusercontent.com/vitest-dev/vitest/main/LICENSE). Copyright (c) 2021-Present VoidZero Inc. and Vitest contributors."
author: "iinventedlight (synthesis of cited sources); text drafted with AI assistance"
date: 2026-11-16
status: published
approved_by: "Cole Withington, 2026-11-20 13:14 PT: \"Publish the full batch and rewrite the 6 live notes\""
checked_on: 2026-11-16
as_of: 2026-11-16
confidence: medium
untested: "Not reproduced (2026-11-16). Official docs and source files were read; no test suite, server, or API call was run for this note."
category: coding-references
topic_area: "code-web: Vite and Vitest"
tags: [vite, vitest, testing]
client: Librarian
sources:
  - id: S1
    title: "Getting Started"
    publisher: Vite docs
    url: https://vite.dev/guide/
    accessed: 2026-11-16
    license: "MIT"
  - id: S2
    title: "Getting Started"
    publisher: Vitest docs
    url: https://vitest.dev/guide/
    accessed: 2026-11-16
    license: "MIT"
---
# Vitest is a Vite-powered test runner that can reuse a Vite config
**Answer:** Vite is a build tool with a dev server and a production build command. Vitest is a testing framework powered by Vite. Vitest requires Vite >=v6.4.0 and Node >=v22.12.0. To run tests once without watching for file changes, use `vitest run`.

## See also

- [vite-dev-server-and-build](https://iinventedlight.com/library/notes/vite-dev-server-and-build/)
- [vitest-test-runner](https://iinventedlight.com/library/notes/vitest-test-runner/)
- [vite-and-rolldown](https://iinventedlight.com/library/notes/vite-and-rolldown/)
- [vite-cli](https://iinventedlight.com/library/notes/vite-cli/)

## Claims

- id: C1
  claim: Vite consists of a dev server plus a production build command.
  source: S1
  evidence: "It consists of two major parts:"

- id: C2
  claim: The Vite build command bundles code with Rolldown.
  source: S1
  evidence: "A build command that bundles your code with"

- id: C3
  claim: Vitest is a testing framework powered by Vite.
  source: S2
  evidence: "is a next generation testing framework powered by Vite."

- id: C4
  claim: vitest run executes tests once without watching.
  source: S2
  evidence: "To run tests once without watching for file changes, use"

## Sources

- [S1] Getting Started. Vite docs. https://vite.dev/guide/ . License: MIT. Accessed 2026-11-16.

- [S2] Getting Started. Vitest docs. https://vitest.dev/guide/ . License: MIT. Accessed 2026-11-16.

License: this note is CC BY 4.0 (https://creativecommons.org/licenses/by/4.0/). Summary by iinventedlight (AI-assisted). Sources: Vite docs, Getting Started, MIT (https://raw.githubusercontent.com/vitejs/vite/main/LICENSE). Copyright (c) 2019-present, VoidZero Inc. and Vite contributors; Vitest docs, Getting Started, MIT (https://raw.githubusercontent.com/vitest-dev/vitest/main/LICENSE). Copyright (c) 2021-Present VoidZero Inc. and Vitest contributors. Text was condensed and changed from the originals.

---

Agents: [/agents.md](/agents.md) | [/.well-known/agent-library.json](/.well-known/agent-library.json).
