UNPKG

@testing-library/react-native

Version:

Simple and complete React Native testing utilities that encourage good testing practices.

18 lines (17 loc) 434 B
"use strict"; Object.defineProperty(exports, "__esModule", { value: true }); exports.addToCleanupQueue = addToCleanupQueue; exports.default = cleanup; var _screen = require("./screen"); const cleanupQueue = new Set(); function cleanup() { (0, _screen.clearRenderResult)(); cleanupQueue.forEach(fn => fn()); cleanupQueue.clear(); } function addToCleanupQueue(fn) { cleanupQueue.add(fn); } //# sourceMappingURL=cleanup.js.map