expect.stringContaining(string)

expect.stringContaining(string) matches the received value if it is a string that contains the exact expected string.