Home > @lynx-js/react/testing-library > RenderOptions > queries

RenderOptions.queries property

Queries to bind. Overrides the default set from DOM Testing Library unless merged.

Signature:

queries?: Q;

Example

// Example, a function to traverse table contents
import * as tableQueries from 'my-table-query-library'
import { queries } from '@lynx-js/react/testing-library'

const { getByRowColumn, getByText } = render(<MyTable />, {
  queries: {...queries, ...tableQueries},
})
Except as otherwise noted, this work is licensed under a Creative Commons Attribution 4.0 International License, and code samples are licensed under the Apache License 2.0.