Create an asymmetric matcher for a promise rejected value.
Symbol
Expect.rejectsTo
rejectsTo: AsymmetricMatchers
expect(Promise.reject("error")).toEqual(expect.rejectsTo.stringContaining("error")); // will pass
expect(Promise.resolve("error")).toEqual(expect.rejectsTo.stringContaining("error")); // will fail
expect("error").toEqual(expect.rejectsTo.stringContaining("error")); // will fail