Skip to content
masterclass Buddy

Vitest · Matcher

toBeCallableWith

toBeCallableWith checks that a function type can be called with the given arguments. It is used in Vitest type tests and does not perform a runtime call.

Last updated

Syntax

expectTypeOf<FunctionType>().toBeCallableWith(...args)

In-depth API docs are only for subscribers: parameters, examples, common mistakes and interview practice.

Subscribe
  • expectTypeOf
  • parameters
  • parameter
  • toBeConstructibleWith

Source: expectTypeOf | Vitest. Checked 2026-11-03.