33 lines
985 B
JavaScript
33 lines
985 B
JavaScript
"use strict";
|
|
|
|
var _interopRequireDefault = require("@babel/runtime/helpers/interopRequireDefault");
|
|
|
|
Object.defineProperty(exports, "__esModule", {
|
|
value: true
|
|
});
|
|
|
|
var _flushMicrotasks = _interopRequireDefault(require("./flush-microtasks"));
|
|
|
|
var _pure = require("./pure");
|
|
|
|
Object.keys(_pure).forEach(function (key) {
|
|
if (key === "default" || key === "__esModule") return;
|
|
Object.defineProperty(exports, key, {
|
|
enumerable: true,
|
|
get: function () {
|
|
return _pure[key];
|
|
}
|
|
});
|
|
});
|
|
|
|
// if we're running in a test runner that supports afterEach
|
|
// then we'll automatically run cleanup afterEach test
|
|
// this ensures that tests run in isolation from each other
|
|
// if you don't like this then either import the `pure` module
|
|
// or set the RTL_SKIP_AUTO_CLEANUP env variable to 'true'.
|
|
if (typeof afterEach === 'function' && !process.env.RTL_SKIP_AUTO_CLEANUP) {
|
|
afterEach(async () => {
|
|
await (0, _flushMicrotasks.default)();
|
|
(0, _pure.cleanup)();
|
|
});
|
|
} |