Skip to content

API Reference / @gtkx/testing / Config

Type Alias: Config ​

Config = object

Defined in: packages/testing/src/config.ts:8

Global configuration for the testing harness, controlling query behavior, error formatting, and the timeouts used by async utilities and actionability checks.

Properties ​

actionabilityTimeout ​

actionabilityTimeout: number

Defined in: packages/testing/src/config.ts:19

Timeout in milliseconds a user event waits for its widget to become actionable.


asyncUtilTimeout ​

asyncUtilTimeout: number

Defined in: packages/testing/src/config.ts:16

Default timeout in milliseconds for async utilities such as waitFor.


getElementError ​

getElementError: (message, container?) => Error

Defined in: packages/testing/src/config.ts:13

Builds the error thrown when a query fails, given a message and optional container.

Parameters ​

message ​

string

container? ​

Container

Returns ​

Error


throwSuggestions ​

throwSuggestions: boolean

Defined in: packages/testing/src/config.ts:10

Whether a successful query throws instead, naming a better query, when one is available.


windowActivationTimeout ​

windowActivationTimeout: number

Defined in: packages/testing/src/config.ts:26

Maximum milliseconds render waits for window layout and activation. Activation needs a compositor round trip, so this is longer than Config.actionabilityTimeout. Rendering resolves as soon as activation succeeds, without waiting out the timeout.