MCPcopy Index your code
hub / github.com/callstack/react-native-testing-library / onDone

Function onDone

src/wait-for.ts:129–141  ·  view source on GitHub ↗
(done: { type: 'result'; result: T } | { type: 'error'; error: unknown })

Source from the content-addressed store, hash-verified

127 }
128
129 function onDone(done: { type: 'result'; result: T } | { type: 'error'; error: unknown }) {
130 if (finished) {
131 return;
132 }
133
134 finalizeWaitFor();
135
136 if (done.type === 'error') {
137 reject(done.error);
138 } else {
139 resolve(done.result);
140 }
141 }
142
143 function checkRealTimersCallback() {
144 if (jestFakeTimersAreEnabled()) {

Callers 3

checkRealTimersCallbackFunction · 0.85
checkExpectationFunction · 0.85
handleTimeoutFunction · 0.85

Calls 1

finalizeWaitForFunction · 0.85

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…