[READ-ONLY] Mirror of https://github.com/vitest-dev/vitest. Next generation testing framework powered by Vite. vitest.dev
test testing-tools vite
12

Configure Feed

Select the types of activity you want to include in your feed.

docs: remove outdated statement

Vladimir Sheremet (Sep 13, 2023, 10:14 AM +0200) b75f91d2 ba1e7335

-6
-6
docs/api/vi.md
··· 433 433 ``` 434 434 ::: 435 435 436 - :::warning 437 - Vitest transforms all `import.meta.env` calls into `process.env`, so they can be easily changed at runtime. Node.js only supports string values as env parameters, while Vite supports several built-in envs as boolean (namely, `SSR`, `DEV`, `PROD`). To mimic Vite, set "truthy" values as env: `''` instead of `false`, and `'1'` instead of `true`. 438 - 439 - But beware that you cannot rely on `import.meta.env.DEV === false` in this case. Use `!import.meta.env.DEV`. This also affects simple assigning, not just `vi.stubEnv` method. 440 - ::: 441 - 442 436 ## vi.unstubAllEnvs 443 437 444 438 - **Type:** `() => Vitest`