Options
All
  • Public
  • Public/Protected
  • All
Menu

Class Plier

Utility for executing multiple tests, organized into their respective suites. Used by both CLI and vscode-ply.

Hierarchy

  • EventEmitter
    • Plier

Index

Constructors

Properties

logger: Logger

general purpose logger not associated with suite (goes to console)

captureRejectionSymbol: typeof captureRejectionSymbol
captureRejections: boolean

Sets or gets the default captureRejection value for all emitters.

defaultMaxListeners: number
errorMonitor: typeof errorMonitor

This symbol shall be used to install a listener for only monitoring 'error' events. Listeners installed using this symbol are called before the regular 'error' listeners are called.

Installing a listener using this symbol does not change the behavior once an 'error' event is emitted, therefore the process will still crash if no regular 'error' listener is installed.

Accessors

Methods

  • addListener(event: string | symbol, listener: (...args: any[]) => void): Plier
  • Parameters

    • event: string | symbol
    • listener: (...args: any[]) => void
        • (...args: any[]): void
        • Parameters

          • Rest ...args: any[]

          Returns void

    Returns Plier

  • emit(event: string | symbol, ...args: any[]): boolean
  • Parameters

    • event: string | symbol
    • Rest ...args: any[]

    Returns boolean

  • eventNames(): (string | symbol)[]
  • Returns (string | symbol)[]

  • find(paths: string[]): Promise<string[]>
  • Finds plyees from suites and tests.

    Parameters

    • paths: string[]

      suite/test paths

    Returns Promise<string[]>

  • getMaxListeners(): number
  • Returns number

  • listenerCount(type: string | symbol): number
  • Parameters

    • type: string | symbol

    Returns number

  • listeners(event: string | symbol): Function[]
  • Parameters

    • event: string | symbol

    Returns Function[]

  • off(event: string | symbol, listener: (...args: any[]) => void): Plier
  • Parameters

    • event: string | symbol
    • listener: (...args: any[]) => void
        • (...args: any[]): void
        • Parameters

          • Rest ...args: any[]

          Returns void

    Returns Plier

  • on(event: string | symbol, listener: (...args: any[]) => void): Plier
  • Parameters

    • event: string | symbol
    • listener: (...args: any[]) => void
        • (...args: any[]): void
        • Parameters

          • Rest ...args: any[]

          Returns void

    Returns Plier

  • once(event: string | symbol, listener: (...args: any[]) => void): Plier
  • Parameters

    • event: string | symbol
    • listener: (...args: any[]) => void
        • (...args: any[]): void
        • Parameters

          • Rest ...args: any[]

          Returns void

    Returns Plier

  • prependListener(event: string | symbol, listener: (...args: any[]) => void): Plier
  • Parameters

    • event: string | symbol
    • listener: (...args: any[]) => void
        • (...args: any[]): void
        • Parameters

          • Rest ...args: any[]

          Returns void

    Returns Plier

  • prependOnceListener(event: string | symbol, listener: (...args: any[]) => void): Plier
  • Parameters

    • event: string | symbol
    • listener: (...args: any[]) => void
        • (...args: any[]): void
        • Parameters

          • Rest ...args: any[]

          Returns void

    Returns Plier

  • rawListeners(event: string | symbol): Function[]
  • Parameters

    • event: string | symbol

    Returns Function[]

  • removeAllListeners(event?: string | symbol): Plier
  • Parameters

    • Optional event: string | symbol

    Returns Plier

  • removeListener(event: string | symbol, listener: (...args: any[]) => void): Plier
  • Parameters

    • event: string | symbol
    • listener: (...args: any[]) => void
        • (...args: any[]): void
        • Parameters

          • Rest ...args: any[]

          Returns void

    Returns Plier

  • run(plyees: string[], runOptions?: RunOptions, plyVersion?: string): Promise<Result[]>
  • Plyees should be test paths (not suites). TODO: DRY this out

    Parameters

    • plyees: string[]
    • Optional runOptions: RunOptions
    • Optional plyVersion: string

    Returns Promise<Result[]>

  • setMaxListeners(n: number): Plier
  • Parameters

    • n: number

    Returns Plier

  • listenerCount(emitter: EventEmitter, event: string | symbol): number
  • deprecated

    since v4.0.0

    Parameters

    • emitter: EventEmitter
    • event: string | symbol

    Returns number

  • on(emitter: EventEmitter, event: string): AsyncIterableIterator<any>
  • Parameters

    • emitter: EventEmitter
    • event: string

    Returns AsyncIterableIterator<any>

  • once(emitter: NodeEventTarget, event: string | symbol): Promise<any[]>
  • once(emitter: DOMEventTarget, event: string): Promise<any[]>
  • Parameters

    • emitter: NodeEventTarget
    • event: string | symbol

    Returns Promise<any[]>

  • Parameters

    • emitter: DOMEventTarget
    • event: string

    Returns Promise<any[]>

Generated using TypeDoc