# Source: https://vitest.dev/config/mode.md

---
url: /config/mode.md
---

# mode

* **Type:** `string`
* **CLI:** `--mode=staging`
* **Default:** `'test'`

Overrides Vite mode