Skip to content

Instantly share code, notes, and snippets.

@tcodes0
Created November 7, 2019 18:02
Show Gist options
  • Select an option

  • Save tcodes0/a0821165845bbfca0dd98a3b57aa69a7 to your computer and use it in GitHub Desktop.

Select an option

Save tcodes0/a0821165845bbfca0dd98a3b57aa69a7 to your computer and use it in GitHub Desktop.
all testing lib helpers returned by render
container: HTMLDivElement { _reactRootContainer: [ReactSyncRoot] },
baseElement: HTMLBodyElement {},
debug: [Function: debug],
unmount: [Function: unmount],
rerender: [Function: rerender],
asFragment: [Function: asFragment],
queryAllByLabelText: [Function: bound queryAllByLabelText],
getAllByLabelText: [Function: bound getAllByLabelText],
queryByLabelText: [Function: bound ],
findAllByLabelText: [Function: bound ],
findByLabelText: [Function: bound ],
queryByPlaceholderText: [Function: bound ],
queryAllByPlaceholderText: [Function: bound bound queryAllByAttribute],
getByPlaceholderText: [Function: bound ],
getAllByPlaceholderText: [Function: bound ],
findAllByPlaceholderText: [Function: bound ],
findByPlaceholderText: [Function: bound ],
queryAllByText: [Function: bound queryAllByText],
getByText: [Function: bound ],
getAllByText: [Function: bound ],
findAllByText: [Function: bound ],
findByText: [Function: bound ],
queryAllByDisplayValue: [Function: bound queryAllByDisplayValue],
queryByDisplayValue: [Function: bound ],
getByDisplayValue: [Function: bound ],
getAllByDisplayValue: [Function: bound ],
findAllByDisplayValue: [Function: bound ],
findByDisplayValue: [Function: bound ],
queryAllByAltText: [Function: bound queryAllByAltText],
queryByAltText: [Function: bound ],
getByAltText: [Function: bound ],
getAllByAltText: [Function: bound ],
findAllByAltText: [Function: bound ],
findByAltText: [Function: bound ],
queryAllByTitle: [Function: bound queryAllByTitle],
queryByTitle: [Function: bound ],
getByTitle: [Function: bound ],
getAllByTitle: [Function: bound ],
findAllByTitle: [Function: bound ],
findByTitle: [Function: bound ],
queryAllByRole: [Function: bound queryAllByRole],
queryByRole: [Function: bound ],
getAllByRole: [Function: bound ],
getByRole: [Function: bound ],
findAllByRole: [Function: bound ],
findByRole: [Function: bound ],
queryAllByTestId: [Function: bound queryAllByTestId],
getByTestId: [Function: bound ],
getAllByTestId: [Function: bound ],
findAllByTestId: [Function: bound ],
findByTestId: [Function: bound ]
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment