API Reference / @gtkx/testing / getElementError
Variable: getElementError
constgetElementError: (message,container?) =>Error
Defined in: packages/testing/dist/errors.d.ts:33
Builds the error a failing query throws, appending the container's widget tree to the message the way the built-in queries do.
Parameters
message
string
The failure message.
container?
The scope whose widget tree is appended; omitted, only the message is used.
Returns
Error
The error produced by the configured getElementError.