Answers if the actual value has a type matching the expected type, checked by using the typeof operator.
`toHaveType('hello', 'string')` returns `true`. Copy
`toHaveType('hello', 'string')` returns `true`.
Answers if the actual value has a type matching the expected type, checked by using the typeof operator.
Example