@testing-library/react-native
Version:
Simple and complete React Native testing utilities that encourage good testing practices.
20 lines (19 loc) • 416 B
JavaScript
;
Object.defineProperty(exports, "__esModule", {
value: true
});
exports.setupTimeType = setupTimeType;
function setupTimeType(type) {
if (type === 'fake-legacy') {
jest.useFakeTimers({
legacyFakeTimers: true
});
} else if (type === 'fake') {
jest.useFakeTimers({
legacyFakeTimers: false
});
} else {
jest.useRealTimers();
}
}
//# sourceMappingURL=timers.js.map