// 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
import * as React from "react";
import * as DeprecatedReactTestUtils from "react-dom/test-utils";
const reactAct = typeof React.act === "function" ? React.act : DeprecatedReactTestUtils.act;
export function actAsync(scope) {
    return reactAct(async () => {
        return await scope();
    });
}
//# sourceMappingURL=actAsync.js.map
