Vitest allows you to write tests for your types, using expectTypeOf or assertType syntaxes. By default all tests inside *.test-d.ts files are considered type tests, but you can change it with typecheck.include config option. Under the hood Vitest calls tsc or vue-tsc, depending on your config, and parses results. Vitest will also print out type errors in your source code, if it finds any. You can
![Testing Types | Vitest](https://cdn-ak-scissors.b.st-hatena.com/image/square/20610e0ac42454e32d7568e0e2575c8b42c29d21/height=288;version=1;width=512/https%3A%2F%2Fvitest.dev%2Fog.png)