Skip to content
Closed
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 4 additions & 0 deletions docs/config/globals.md
Original file line number Diff line number Diff line change
Expand Up @@ -34,6 +34,10 @@ To get TypeScript working with the global APIs, add `vitest/globals` to the `typ
}
```

::: tip
If you create a project using `create vue`, the `tsconfig.app.json` file should be used to place these configurations; only then will they take effect in the project.
:::

If you have redefined your [`typeRoots`](https://www.typescriptlang.org/tsconfig/#typeRoots) to include additional types in your compilation, you will need to add back the `node_modules` to make `vitest/globals` discoverable:

```json [tsconfig.json]
Expand Down