function toBeAPromise(actual) {
  const pass = Object.prototype.toString.call(actual) === "[object Promise]";
  return {
    pass,
    message: () => `expected ${this.utils.printReceived(actual)}${pass ? " not" : ""} to be a promise`,
  };
}
Test whether something is a promise. Works across realms.