Skip to content

API Reference / @gtkx/testing / getByName

Variable: getByName

const getByName: BuiltinQueries["getByName"]

Defined in: packages/testing/dist/queries.d.ts:99

Returns the single mapped widget with a matching widget name. Widgets that are not mapped are never matched. Throws when none or more than one matches.

Released under the MPL-2.0 License.