Jest · Module
stringContaining
expect.stringContaining checks that a received string contains an exact substring. It can be nested inside several Jest assertions and asymmetric matchers.
Last updated
Syntax
expect.stringContaining(string)In-depth API docs are only for subscribers: parameters, examples, common mistakes and interview practice.
SubscribeRelated
expect.not.stringContainingexpect.stringMatchingexpect.arrayContainingexpect.objectContainingtoEqualtoHaveBeenCalledWith