MCPcopy
hub / github.com/callstack/react-native-testing-library / unmount

Function unmount

src/render.tsx:64–68  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

62 };
63
64 const unmount = async () => {
65 await act(() => {
66 renderer.unmount();
67 });
68 };
69
70 const toJSON = (): JsonElement | null => {
71 const json = renderer.container.toJSON();

Callers 5

input.tsxFile · 0.85
expected.tsxFile · 0.85
input.tsxFile · 0.85
expected.tsxFile · 0.85

Calls 1

actFunction · 0.90

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…