Expect — Assert a Partial Object Match (in Jest’s Expect)
Testing objects and asserting their equality can be tricky. For example, in integration tests where you’re sending HTTP requests to a server and receiving responses back. You may want to assert a subset of response headers to match a given expectation. You may not be in control of the …
Continue Reading