code: function toBeAllowed(result) {
    const pass = result.allowed === true;
    const message = pass ?
      () => `Expected operation to be ${this.utils.EXPECTED_COLOR('denied')} but it was ${this.utils.RECEIVED_COLOR('allowed')}\n\n${result.info}` :
      () => `Expected operation to be ${this.utils.EXPECTED_COLOR('allowed')} but it was ${this.utils.RECEIVED_COLOR('denied')}\n\n${result.info}`;
  
    return {
      message,
      pass
    };
  }
docs: Need to disable eslint rule for jest's utils: this.utils.EXPECTED_COLOR('a') /* eslint-disable new-cap