Skip to content

Commit

Permalink
docs: better docs
Browse files Browse the repository at this point in the history
  • Loading branch information
sheremet-va committed Jun 20, 2024
1 parent d3abf2c commit 79c3485
Show file tree
Hide file tree
Showing 4 changed files with 365 additions and 91 deletions.
4 changes: 4 additions & 0 deletions docs/config/index.md
Original file line number Diff line number Diff line change
Expand Up @@ -407,6 +407,10 @@ browser-like environment through either [`jsdom`](https://github.com/jsdom/jsdom
or [`happy-dom`](https://github.com/capricorn86/happy-dom) instead.
If you are building edge functions, you can use [`edge-runtime`](https://edge-runtime.vercel.app/packages/vm) environment

::: tip
You can also use [Browser Mode](/guide/browser) to run integration or unit tests in the browser without mocking the environment.
:::

By adding a `@vitest-environment` docblock or comment at the top of the file,
you can specify another environment to be used for all tests in that file:

Expand Down
Loading

0 comments on commit 79c3485

Please sign in to comment.