In this lesson, we're diving a little further into the Jest expectations that we can use to test different data types.
We'll learn why we have to use
toEqual() instead of
toBe() when testing arrays and objects. We will also learn about a handy technique that uses
We can use
property matchers when we need to test properties that produce random values, where we do not care about the exact value, like a date.