UXP Toolkit
    Preparing search index...

    Custom Vitest pool worker that communicates over CDP using birpc. Uses @vitest/runner in the CDP context for full Vitest compatibility.

    Implements

    • PoolWorker
    Index

    Constructors

    Properties

    Methods

    Constructors

    • Parameters

      • poolOptions: PoolOptions
      • rawCdpOptions: RawCdpPoolOptions

      Returns CdpPoolWorker

    Properties

    name: string = 'cdp-pool'

    Methods

    • This is called on workers that already satisfy certain constraints:

      • The task has the same worker name
      • The task has the same project

      Returns boolean

    • Deserialize data received from the worker.

      Parameters

      • data: unknown

      Returns unknown

    • Remove an event listener.

      Parameters

      • event: string
      • callback: EventCallback

      Returns void

    • Register an event listener.

      Parameters

      • event: string
      • callback: EventCallback

      Returns void

    • Send a message to the worker in the CDP context. This is called by Vitest with WorkerRequest messages or birpc RPC messages. We intercept these and handle them with our hybrid approach.

      Parameters

      • message: WorkerRequest

      Returns void

    • Start the worker by establishing the CDP connection and injecting the runtime.

      Returns Promise<void>

    • Stop the worker by closing the CDP connection.

      Returns Promise<void>