Options
All
  • Public
  • Public/Protected
  • All
Menu

External module "node_modules/@types/testing-library__react/index.d"

Index

Interfaces

Type aliases

Variables

Functions

Type aliases

Omit

Omit<T, K>: Pick<T, Exclude<keyof T, K>>

Type parameters

  • T

  • K: keyof T

RenderResult

RenderResult<Q>: object & object

Type parameters

Variables

Const act

act: act

Simply calls ReactDOMTestUtils.act(cb) If that's not available (older version of react) then it simply calls the given callback immediately

Functions

cleanup

  • cleanup(): void
  • Unmounts React trees that were mounted with render.

    Returns void

render

  • Render into a container which is appended to document.body. It should be used with cleanup.

    Parameters

    Returns RenderResult

  • Type parameters

    Parameters

    Returns RenderResult<Q>

Generated using TypeDoc