"use strict";
// This is a helper required for React 19 testing.
// There are currently multiple directions this could play out in RTL and none of
// them has been released yet, so we are inlining this helper for now.
// See https://github.com/testing-library/react-testing-library/pull/1214
// and https://github.com/testing-library/react-testing-library/pull/1365
Object.defineProperty(exports, "__esModule", { value: true });
exports.actAsync = actAsync;
const tslib_1 = require("tslib");
const React = tslib_1.__importStar(require("react"));
const DeprecatedReactTestUtils = tslib_1.__importStar(require("react-dom/test-utils"));
const reactAct = typeof React.act === "function" ? React.act : DeprecatedReactTestUtils.act;
function actAsync(scope) {
    return reactAct(async () => {
        return await scope();
    });
}
//# sourceMappingURL=actAsync.cjs.map
