Internal options that provide extra context for the matcher.
Received value.
Expected value in the collection.
Ensures that string value contains an expected substring. Comparison is case-sensitive.
Usage
const value = 'Hello, World';
expect(value).toContain('World');
expect(value).toContain(',');
Internal options that provide extra context for the matcher.
Received value.
Expected substring.
Ensures that value is an
ArrayorSetand contains an expected item.Usage