Testing · Senior · Question 30 of 75

What does expectTypeOf in Vitest test?

expectTypeOf(parse("1")).toEqualTypeOf<number>();

Explanation

Type tests run with vitest --typecheck (or files *.test-d.ts).

Further reading

Problem with a question

Testing · Senior · question 30

Test yourself

Take the Testing · Senior quiz: questions and options are shuffled, and you get a review of your mistakes at the end.

Take this quiz