Skip to main content

Variable: screen

const screen: object

Defined in: screen.ts:28

Global screen object providing query methods bound to the current render root. Similar to Testing Library's screen, it provides all query variants without needing to destructure from render().

Type Declaration

NameTypeDefined in
debug()() => voidscreen.ts:44
findAllByLabelText()(text, options?) => Promise<Widget[]>screen.ts:37
findAllByRole()(role, options?) => Promise<Widget[]>screen.ts:36
findAllByTestId()(testId, options?) => Promise<Widget[]>screen.ts:41
findAllByText()(text, options?) => Promise<Widget[]>screen.ts:39
findByLabelText()(text, options?) => Promise<Widget>screen.ts:30
findByRole()(role, options?) => Promise<Widget>screen.ts:29
findByTestId()(testId, options?) => Promise<Widget>screen.ts:33
findByText()(text, options?) => Promise<Widget>screen.ts:32