API Reference / @gtkx/testing / WaitForOptions
Type Alias: WaitForOptions
WaitForOptions =
object
Defined in: packages/testing/src/types.ts:33
Options controlling how asynchronous queries and waits poll for a condition.
Properties
interval?
optionalinterval?:number
Defined in: packages/testing/src/types.ts:37
Delay in milliseconds between retries.
onTimeout?
optionalonTimeout?: (error) =>Error
Defined in: packages/testing/src/types.ts:39
Transforms the error thrown when the timeout elapses.
Parameters
error
Error
Returns
Error
stackTraceError?
optionalstackTraceError?:Error
Defined in: packages/testing/src/types.ts:41
Error whose stack trace attributes the timeout failure to the calling code.
timeout?
optionaltimeout?:number
Defined in: packages/testing/src/types.ts:35
Maximum time in milliseconds to keep retrying before failing.