hunk.code_window:   }
   `;
   const getMessage = () => {
     const msg = `Someone else is also editing this page. Your changes may get overwritten. Realtime Editing is coming soon.`;
     return msg;
   };
   export default function ConcurrentPageEditorToast() {
     const [isForceHidden, setIsForceHidden] = useState(true);
  
hunk.labels: keep keep keep keep replace keep keep keep keep keep
hunk.after_edit:   const msg = `Other users editing this page may overwrite your changes. Realtime editing is coming soon!`;
  
hunk.file_path: app/client/src/comments/ConcurrentPageEditorToast.tsx
hunk.type: replace
file: export const MockCodemirrorEditor = {
    setOption: jest.fn(),
    options: {
      extraKeys: {},
    },
    getValue: jest.fn(),
    getCursor: jest.fn(),
    showHint: jest.fn(),
    getLine: jest.fn(),
    closeHint: jest.fn(),
    getRange: jest.fn(),
    getDoc: jest.fn(),
  };
  
  export const mockCodemirrorRender = () => {
    document.createRange = () => {
      const range = new Range();
  
      range.getBoundingClientRect = jest.fn();
  
      // eslint-disable-next-line @typescript-eslint/ban-ts-comment
      // @ts-ignore
      range.getClientRects = jest.fn(() => ({
        item: () => null,
        length: 0,
      }));
  
      return range;
    };
  };
  