import React from 'react';
import { act, render } from '@testing-library/react';
import { IntlProvider } from 'react-intl';
export const renderWithIntl = component => {
  return render( /*#__PURE__*/React.createElement(IntlProvider, {
    locale: "en"
  }, component));
};
export async function asyncAct(cb) {
  try {
    await cb(); // make all effects resolve after
  } catch (err) {
    // This is to handle rejected promise
  }
  act(() => {});
}