Assert that the actual and expected values are identical (i.e. the same instance, not just equal)
The expected value
Assert that the actual value is of the specified type. This is a compile-time check:
expect(1 as number | string).toBeOfType<number|string>() // ok
expect(1 as number | string).toBeOfType<number>() // does not compile
Assert that the actual and expected values are equal (even if they are different instances)
The expected value
Assertions