搜索文档
Home > @lynx-js/react/testing-library > RenderOptions > queries
Queries to bind. Overrides the default set from DOM Testing Library unless merged.
Signature:
queries?: Q;
// 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}, })