mirror of
https://github.com/callstack/react-native-testing-library.git
synced 2026-09-18 23:09:04 +08:00
feat: add "cleanup" function (#237)
* feat: add "cleanup" function * docs: add "cleanup" section * test: "cleanup" function * don't expose cleanup queue Co-authored-by: Alec Larson <alec.stanford.larson@gmail.com> Co-authored-by: Michał Pierzchała <thymikee@gmail.com>
This commit is contained in:
committed by
Kacper Wiszczuk
parent
69d148023f
commit
4c77f4a7dc
Vendored
+1
@@ -135,6 +135,7 @@ export declare const shallow: <P = {}>(
|
||||
instance: ReactTestInstance | React.ReactElement<P>
|
||||
) => { output: React.ReactElement<P> };
|
||||
export declare const flushMicrotasksQueue: () => Promise<any>;
|
||||
export declare const cleanup: () => void;
|
||||
export declare const debug: DebugAPI;
|
||||
export declare const fireEvent: FireEventAPI;
|
||||
export declare const waitForElement: WaitForElementFunction;
|
||||
|
||||
Reference in New Issue
Block a user