Skip to content

API Reference / @gtkx/testing / QueryHelpers

Type Alias: QueryHelpers ​

QueryHelpers = object

Defined in: packages/testing/dist/query-helpers.d.ts:7

The helpers used to build custom queries, bundled the way DOM Testing Library exposes them.

Properties ​

buildQueries ​

buildQueries: typeof buildQueries

Defined in: packages/testing/dist/query-helpers.d.ts:9

Derives a query family's variants from its queryAllBy function.


getElementError ​

getElementError: typeof getElementError

Defined in: packages/testing/dist/query-helpers.d.ts:11

Builds the error a failing query throws.


queryAllByObjectProperty ​

queryAllByObjectProperty: typeof queryAllByObjectProperty

Defined in: packages/testing/dist/query-helpers.d.ts:13

Finds every widget whose GObject property matches.


queryByObjectProperty ​

queryByObjectProperty: typeof queryByObjectProperty

Defined in: packages/testing/dist/query-helpers.d.ts:15

Finds the single widget whose GObject property matches.

Released under the MPL-2.0 License.