We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
@testing-library/react
export type RenderResult<Q extends Queries = typeof queries> = { container: Element baseElement: Element debug: ( baseElement?: | Element | DocumentFragment | Array<Element | DocumentFragment>, maxLength?: number, options?: prettyFormat.OptionsReceived, ) => void rerender: (ui: React.ReactElement) => void unmount: () => boolean asFragment: () => DocumentFragment } & {[P in keyof Q]: BoundFunction<Q[P]>}
Trying to use unmount()
wrapper.unmount() returns undefined, whereas the type shows it returns boolean ...\node_modules@testing-library\react\types\index.d.ts
We can update the type definition file.
The text was updated successfully, but these errors were encountered:
void
Here is pull request #857
Sorry, something went wrong.
Closed in #857
Successfully merging a pull request may close this issue.
@testing-library/react
version: 11.2.2Relevant code or config:
What you did:
Trying to use unmount()
Problem description:
wrapper.unmount() returns undefined, whereas the type shows it returns boolean
...\node_modules@testing-library\react\types\index.d.ts
Suggested solution:
We can update the type definition file.
The text was updated successfully, but these errors were encountered: