UNPKG

@testing-library/react-native

Version:

Simple and complete React Native testing utilities that encourage good testing practices.

8 lines (7 loc) 398 B
declare global { var IS_REACT_ACT_ENVIRONMENT: boolean | undefined; } declare function setIsReactActEnvironment(isReactActEnvironment: boolean | undefined): void; declare function getIsReactActEnvironment(): boolean | undefined; export declare function act<T>(callback: () => T | Promise<T>): Promise<T>; export { getIsReactActEnvironment, setIsReactActEnvironment as setReactActEnvironment };