/**
 * In case Drawer component will be rendered in test opened from the start
 * we need to make sure anchor element for portal is already present in the dom
 * cause otherwise we'll get "Target container is not a DOM element." error from jest.
 * Use this helper function in beforeEach or before to ensure everything works fine */
export function mountFullScreenDrawerRootNode() {
  const div = document.createElement('div');
  div.setAttribute('id', 'full-screen-modal-root');
  document.body.append(div);
}