/** deprecated Use React Testing Library's waitFor like method instead */
// eslint-disable-next-line @atlaskit/platform/no-set-immediate
export var flushPromises = function flushPromises() {
  return new Promise(function (resolve) {
    return setImmediate(resolve);
  });
};