vitest
vitest copied to clipboard
Additional type definitions are ignored
Describe the bug
Extra type definitions specified on tsconfig through "compilerOptions": { "types": [...] } are ignored by the type checker.
Reproduction
https://stackblitz.com/edit/vitest-dev-vitest-jbppb2?file=test%2Fbasic.test.ts
System Info
System:
OS: Linux 6.1 SteamOS
CPU: (8) x64 AMD Custom APU 0932
Memory: 1.80 GB / 14.47 GB
Container: Yes
Shell: 5.1.16 - /bin/bash
Binaries:
Node: 22.1.0 - ~/.nvm/versions/node/v22.1.0/bin/node
npm: 10.7.0 - ~/.nvm/versions/node/v22.1.0/bin/npm
pnpm: 9.1.0 - ~/.local/share/pnpm/pnpm
npmPackages:
vitest: ^1.6.0 => 1.6.0
Used Package Manager
pnpm
Validations
- [X] Follow our Code of Conduct
- [X] Read the Contributing Guidelines.
- [X] Read the docs.
- [X] Check that there isn't already an issue that reports the same bug to avoid creating a duplicate.
- [X] Check that this is a concrete bug. For Q&A open a GitHub Discussion or join our Discord Chat Server.
- [X] The provided reproduction is a minimal reproducible example of the bug.