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

Function addToCleanupQueue

src/cleanup.ts:17–19  ·  view source on GitHub ↗
(fn: CleanUpFunction)

Source from the content-addressed store, hash-verified

15}
16
17export function addToCleanupQueue(fn: CleanUpFunction) {
18 cleanupQueue.add(fn);
19}
20
21export function removeFromCleanupQueue(fn: CleanUpFunction) {
22 cleanupQueue.delete(fn);

Callers 2

waitForInternalFunction · 0.90
renderFunction · 0.90

Calls

no outgoing calls

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…