API Reference / @gtkx/testing / Config
Type Alias: Config
Config =
object
Defined in: packages/testing/dist/config.d.ts:7
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/dist/config.d.ts:15
Timeout in milliseconds a user event waits for its widget to become actionable.
asyncUtilTimeout
asyncUtilTimeout:
number
Defined in: packages/testing/dist/config.d.ts:13
Default timeout in milliseconds for async utilities such as waitFor.
getElementError
getElementError: (
message,container?) =>Error
Defined in: packages/testing/dist/config.d.ts:11
Builds the error thrown when a query fails, given a message and optional container.
Parameters
message
string
container?
Returns
Error
throwSuggestions
throwSuggestions:
boolean
Defined in: packages/testing/dist/config.d.ts:9
Whether a successful query throws instead, naming a better query, when one is available.
windowActivationTimeout
windowActivationTimeout:
number
Defined in: packages/testing/dist/config.d.ts:22
Timeout in milliseconds render waits for the window it shows the tree in to be laid out and activated. A window becoming active is a round trip through the compositor rather than an in-process check, so this is far longer than Config.actionabilityTimeout: it bounds how long a window that never activates takes to report, and costs nothing when one does.