Vitest llms.txt · AI Docs Browser · mdream

[llms.txt Tools](https://mdream.dev/llms-txt/vitest/llms-txt)

# Vitest llms.txt

Browse Vitest documentation as markdown. Click any page in the sidebar to view it, or copy the full llms.txt for your AI tools.

www.vitest.dev/llms.txt

[Raw llms.txt](https://www.vitest.dev/llms.txt) [Raw llms-full.txt](https://www.vitest.dev/llms-full.txt)

Copy Markdown [](https://www.vitest.dev/llms.txt)

llms.txt

Table of Contents

Configuring Vitest

include | Config

exclude | Config

includeSource | Config

name | Config

server | Config

deps | Config

runner | Config

benchmark | Config

alias | Config

globals | Config

environment | Config

environmentOptions | Config

watch | Config

watchTriggerPatterns | Config

root | Config

dir | Config

reporters | Config

outputFile | Config

pool | Config

execArgv | Config

vmMemoryLimit | Config

fileParallelism | Config

maxWorkers | Config

testTimeout | Config

hookTimeout | Config

teardownTimeout | Config

silent | Config

setupFiles | Config

provide | Config

globalSetup | Config

forceRerunTriggers | Config

coverage | Config

testNamePattern | Config

ui | Config

open | Config

api | Config

clearMocks | Config

mockReset | Config

restoreMocks | Config

unstubEnvs | Config

unstubGlobals | Config

snapshotFormat | Config

snapshotSerializers | Config

resolveSnapshotPath | Config

allowOnly | Config

passWithNoTests | Config

logHeapUsage | Config

css | Config

maxConcurrency | Config

cache | Config

sequence | Config

tags | Config

strictTags | Config

typecheck | Config

slowTestThreshold | Config

chaiConfig | Config

bail | Config

retry | Config

onConsoleLog | Config

onStackTrace | Config

onUnhandledError | Config

dangerouslyIgnoreUnhandledErrors | Config

diff | Config

fakeTimers | Config

projects | Config

isolate | Config

includeTaskLocation | Config

snapshotEnvironment | Config

env | Config

expect | Config

printConsoleTrace | Config

attachmentsDir | Config

hideSkippedTests | Config

mode | Config

expandSnapshotDiff | Config

disableConsoleIntercept | Config

experimental | Config

browser.enabled | Config

browser.instances | Config

browser.headless | Config

browser.isolate | Config

browser.testerHtmlPath | Config

browser.api | Config

browser.provider | Config

browser.ui | Config

browser.detailsPanelPosition | Config

browser.viewport | Config

browser.locators | Config

browser.screenshotDirectory | Config

browser.screenshotFailures | Config

browser.orchestratorScripts | Config

browser.commands | Config

browser.connectTimeout | Config

browser.trace | Config

browser.trackUnhandledErrors | Config

browser.expect | Config

Configuring Playwright

Configuring WebdriverIO

Configuring Preview

Why Vitest | Guide

Getting Started | Guide

Features | Guide

Writing Tests | Guide

Using Matchers | Guide

Testing Asynchronous Code | Guide

Setup and Teardown | Guide

Mock Functions | Guide

Snapshot Testing | Guide

Testing in Practice | Guide

Debugging Failing Tests | Guide

Writing Tests with AI | Guide

Why Browser Mode | Browser Mode

Browser Mode | Guide

Multiple Setups

Component Testing | Guide

Visual Regression Testing

Trace View

ARIA Snapshots | Guide

Command Line Interface | Guide

Test Filtering | Guide

Test Tags | Guide

Test Context | Guide

Test Environment | Guide

Test Run Lifecycle | Guide

Snapshot | Guide

Mocking | Guide

Parallelism | Guide

Test Projects | Guide

Reporters | Guide

Coverage | Guide

Testing Types | Guide

Vitest UI | Guide

In-Source Testing | Guide

Test Annotations | Guide

Extending Matchers | Guide

IDE Integrations | Guide

Debugging | Guide

Common Errors | Guide

Migration Guide | Guide

Open Telemetry Support {#open-telemetry-support}

Mocking Dates

Mocking Functions

Mocking Globals

Mocking Modules

Mocking the File System

Mocking Requests

Timers

Mocking Classes

Profiling Test Performance

Improving Performance

Test

describe

Hooks

Context API | Browser Mode

Interactivity API | Browser Mode

Locators | Browser Mode

Assertion API | Browser Mode

Commands | Browser Mode

vitest-browser-react

vitest-browser-vue

vitest-browser-svelte

Vitest API

TestProject

TestSpecification

TestCase

TestSuite

TestModule

TestCollection

Plugin API

Runner API advanced

Reporters

Task Metadata advanced

Test Artifacts

assert

assertType

detectAsyncLeaks | Config

expect

expectTypeOf

Mocks

Remove UnoCSS - Migration Complete

Untitled

update | Config

Using Plugins | Guide

Vi

## What is Vitest's llms.txt?

Vitest publishes an `/llms.txt` file that provides AI systems with a structured index of its documentation. It follows the [llms.txt specification](https://llmstxt.org), organizing links to guides, API references, and tutorials under section headings so that LLMs like ChatGPT, Claude, and Gemini can quickly understand what Vitest offers and where to find details.

Issues

Spec

1

Sections

185

Links

9.8 KB

Size

~2.5k

Tokens

Sections: Table of Contents

## Add Vitest Docs to Your AI Assistant

Select your tool to see how to add Vitest's llms.txt as a documentation source.

Cursor

 Windsurf

 Claude Code

 ChatGPT

 Zed

 Copilot

1. 1

   Open any chat or composer panel
2. 2

   Type @Docs and select "Add new doc"
3. 3

   Paste the URL: https://www.vitest.dev/llms.txt
4. 4

   Wait for the green dot (indexing complete)
5. 5

   Reference @Docs in chat when asking about Vitest

Cursor crawls the URL and indexes all subpages. Add a trailing slash to index child pages too.

## Spec Compliance 15 errors

## Frequently Asked Questions

Where is Vitest's llms.txt file?

Vitest publishes its llms.txt at https://www.vitest.dev/llms.txt. This file provides a structured, markdown-formatted index of Vitest's documentation that AI systems can consume to understand the project's APIs, guides, and references.

How do I use Vitest's llms.txt with AI coding assistants?

Copy the llms.txt content and paste it into your AI assistant (Cursor, Windsurf, Claude, ChatGPT) as context. This gives the AI an accurate map of Vitest's documentation so it can provide better code suggestions and answers about Vitest.

What does Vitest's llms.txt contain?

Vitest's llms.txt contains 1 sections and 185 documentation links in 9.8 KB (~2.5k tokens). Key sections include Table of Contents.

How many tokens does Vitest's llms.txt use?

The concise llms.txt index is approximately 2.5k tokens (9.8 KB). Most AI assistants can fit this within their context window. For the full expanded documentation, look for an llms-full.txt variant which embeds all content inline.

What is Vitest?

Next generation testing framework. Vitest's llms.txt file helps AI systems understand this by providing a structured overview of its documentation, making it easier for developers to get accurate AI-assisted help when working with Vitest.

Can I generate an llms.txt for my own project?

Yes. Use the free llms.txt generator at mdream.dev/tools/llms-txt/generator to crawl your site and produce a spec-compliant llms.txt file. You can also validate existing files with the llms.txt validator.

## Browse More llms.txt Files

[Rspack A fast Rust-based web bundler](https://mdream.dev/llms-txt/vitest/llms-txt/rspack) [Vite Next generation frontend tooling](https://mdream.dev/llms-txt/vitest/llms-txt/vite) [Deno The next-generation JavaScript runtime](https://mdream.dev/llms-txt/vitest/llms-txt/deno) [Panda CSS CSS-in-JS with build-time generated styles](https://mdream.dev/llms-txt/vitest/llms-txt/panda-css) [Prettier Opinionated code formatter](https://mdream.dev/llms-txt/vitest/llms-txt/prettier) [React Spectrum Adobe's collection of libraries and tools for building adaptive, accessible UIs](https://mdream.dev/llms-txt/vitest/llms-txt/react-spectrum) [tRPC End-to-end typesafe APIs made easy](https://mdream.dev/llms-txt/vitest/llms-txt/trpc) [daisyUI The most popular component library for Tailwind CSS](https://mdream.dev/llms-txt/vitest/llms-txt/daisyui)

[View all 99 projects ](https://mdream.dev/llms-txt/vitest/llms-txt)

## Related Tools

[<h3>llms.txt Generator</h3>Generate an llms.txt for your own project.](https://mdream.dev/llms-txt/vitest/tools/llms-txt/generator) [<h3>llms.txt Validator</h3>Validate your llms.txt against the official spec.](https://mdream.dev/llms-txt/vitest/tools/llms-txt/validator)

© 2026 [Harlan Wilton](https://github.com/harlan-zw) · [MIT](https://github.com/harlan-zw/mdream/blob/main/license)

[GitHub](https://github.com/harlan-zw/mdream) [Discord](https://discord.com/invite/275MBUBvgP)