Skip to content

IntegrationSetupFailedError

Thrown when a test worker asks for the ambient transport of a project whose global setup failed. Carries the configured transport, the original error’s name, and its message, so callers can instanceof-match and report the real cause instead of a downstream transport error.

Import:

import { IntegrationSetupFailedError } from 'obsidian-integration-testing';

Signature:

export class IntegrationSetupFailedError extends Error

Extends: Error

Constructor

new IntegrationSetupFailedError(params: IntegrationSetupFailedErrorConstructorParams)

Creates the error from the failure the global setup published to its workers.

Properties

PropertyTypeDescription
errorNamestringThe name of the original error the global setup threw.
originalMessagestringThe original setup failure, as stringified by the adapter that caught it.
transportLabelstringThe transport the failed project is configured for.

Links to this page: