packages/@pollyjs/core/src/-private/event-emitter.js
/**
   * Returns an array listing the events for which the emitter has
   * registered listeners
   *
   * @returns {String[]}
   */
Returns an array listing the events for which the emitter has
registered listeners

@returns {String[]}
Returns an array listing the events for which the emitter has registered listeners @returns { String [] }
eventNames() {
    const eventNames = [];
    this[EVENTS].forEach(
      (_, eventName) =>
        this.hasListeners(eventName) && eventNames.push(eventName)
    );
    return eventNames;
  }
eventNames ( ) { const eventNames = [ ] ; this [ EVENTS ] . forEach ( ( _ , eventName ) => this . hasListeners ( eventName ) && eventNames . push ( eventName ) ) ; return eventNames ; }
Returns an array listing the events for which the emitter has
 registered listeners
Returns an array listing the events for which the emitter has registered listeners