Something went wrong. Try again.
[READ-ONLY] Mirror of https://github.com/vitest-dev/vitest. Next generation testing framework powered by Vite. vitest.dev
test testing-tools vite
Something went wrong. Try again.
345 B · 16 lines
TypeScript
1234567891011121314151617import { describe, expectTypeOf, test } from 'vitest'
test('failing test', () => { expectTypeOf(1).toEqualTypeOf<string>()})
describe('nested suite', () => { describe('nested 2', () => { test('failing test 2', () => { expectTypeOf(1).toBeVoid() expectTypeOf(1).toBeUndefined() }) })
expectTypeOf(1).toBeVoid()})