diff --git a/docs/1.getting-started/11.testing.md b/docs/1.getting-started/11.testing.md index dce433a768..defd522f92 100644 --- a/docs/1.getting-started/11.testing.md +++ b/docs/1.getting-started/11.testing.md @@ -68,6 +68,10 @@ When importing `@nuxt/test-utils` in your vitest config, It is necessary to have > ie. `vitest.config.m{ts,js}`. :: +::tip +It is possible to set environment variables for testing by using the `.env.test` file. +:: + ### Using a Nuxt Runtime Environment By default, `@nuxt/test-utils` will not change your default Vitest environment, so you can do fine-grained opt-in and run Nuxt tests together with other unit tests.