-
-
Notifications
You must be signed in to change notification settings - Fork 1.7k
Closed
Labels
Description
Describe the bug
It seems like type tests do not function. TSC correctly detects type mismatch, but the test succeeds.
It seems to affect all methods - eg.
test('type', () => {
expectTypeOf(5).toEqualTypeOf<string>();
assertType<number>('trs');
});
Reproduction
https://stackblitz.com/edit/vitest-dev-vitest-ifsb5l?file=test/basic.test.ts
System Info
System:
OS: macOS 13.1
CPU: (12) x64 Intel(R) Core(TM) i7-9750H CPU @ 2.60GHz
Memory: 6.06 GB / 32.00 GB
Shell: 3.2.57 - /bin/bash
Binaries:
Node: 16.16.0 - ~/.nvm/versions/node/v16.16.0/bin/node
npm: 8.19.3 - ~/Desktop/code/skeletonizer/node_modules/.bin/npm
Watchman: 2022.10.31.00 - /usr/local/bin/watchman
Browsers:
Chrome: 109.0.5414.119
Firefox: 97.0
Safari: 16.2
npmPackages:
vitest: ^0.28.3 => 0.28.3Used Package Manager
npm
Validations
- Follow our Code of Conduct
- Read the Contributing Guidelines.
- Read the docs.
- Check that there isn't already an issue that reports the same bug to avoid creating a duplicate.
- Check that this is a concrete bug. For Q&A open a GitHub Discussion or join our Discord Chat Server.
- The provided reproduction is a minimal reproducible example of the bug.
Reactions are currently unavailable