Validate every element of an array against a condition or type It is the
inverse of expect.arrayOf.
expect.not.objectContaining(object) matches any received object
that does not recursively match the expected properties. That is, the
expected object is not a subset of the received object. Therefore,
it matches a received object which contains properties that are not
in the expected object. It is the inverse of expect.objectContaining.
Optionally, you can provide a type for the object via a generic. This ensures that the object contains the desired structure.
expect.not.stringContaining(string) matches the received string
that does not contain the exact expected string. It is the inverse of
expect.stringContaining.
expect.not.stringMatching(string | regexp) matches the received
string that does not match the expected regexp. It is the inverse of
expect.stringMatching.
expect.not.arrayContaining(array)matches a received array which does not contain all of the elements in the expected array. That is, the expected array is not a subset of the received array. It is the inverse ofexpect.arrayContaining.Optionally, you can provide a type for the elements via a generic.