@testing-library/react-native
Version:
Simple and complete React Native testing utilities that encourage good testing practices.
14 lines (13 loc) • 411 B
JavaScript
;
Object.defineProperty(exports, "__esModule", {
value: true
});
exports.wait = wait;
function wait(config, durationInMs) {
const delay = durationInMs ?? config.delay;
if (typeof delay !== 'number' || delay == null) {
return;
}
return Promise.all([new Promise(resolve => globalThis.setTimeout(() => resolve(), delay)), config.advanceTimers(delay)]);
}
//# sourceMappingURL=wait.js.map