mirror of
https://github.com/vitest-dev/vitest.git
synced 2025-12-08 18:26:03 +00:00
* Fix typos and enhance grammar. * Merge branch 'main' * Apply suggestions from code review Co-authored-by: Anjorin Damilare <damilareanjorin1@gmail.com> Co-authored-by: Vladimir <sleuths.slews0s@icloud.com> Co-authored-by: Anjorin Damilare <damilareanjorin1@gmail.com>
24 lines
805 B
Markdown
24 lines
805 B
Markdown
---
|
|
title: Vitest UI | Guide
|
|
---
|
|
|
|
# Vitest UI
|
|
|
|
Powered by Vite, Vitest also has a dev server under the hood when running the tests. This allows Vitest to provide a beautiful UI to view and interact with your tests. The Vitest UI is optional, so you'll need to install it with:
|
|
|
|
```bash
|
|
npm i -D @vitest/ui
|
|
```
|
|
|
|
Then you can start the tests with UI by passing the `--ui` flag:
|
|
|
|
```bash
|
|
vitest --ui
|
|
```
|
|
|
|
Then you can visit the Vitest UI at <a href="http://localhost:51204/__vitest__/">`http://localhost:51204/__vitest__/`</a>
|
|
|
|
|
|
<img alt="Vitest UI" img-light src="https://user-images.githubusercontent.com/11247099/171992267-5cae2fa0-b927-400a-8eb1-da776974cb61.png">
|
|
<img alt="Vitest UI" img-dark src="https://user-images.githubusercontent.com/11247099/171992272-7c6057e2-80c3-4b17-a7b6-0ac28e5a5e0b.png">
|