Got this debugging another error. Filing here for reference. Original code: https://phabricator.intern.facebook.com/P59317705
'inside callback: Hi',
      'after committing: Hi',
    ]);
  });
  it('can commit an empty batch', () => {
    const root = ReactDOM.createRoot(container);
    root.render(<AsyncMode>1</AsyncMode>);
    expire(2000);
    
    const batch = root.createBatch();
    
    batch.commit();
    expect(container.textContent).toEqual('');
    flush();
    expect(container.textContent).toEqual('1');
  });
  it('two batches created simultaneously are committed separately', () => {
    
    const root = ReactDOM.createRoot(container);
    const batch1 = root.createBatch();
    batch1.render(1);
    const batch2 = root.createBatch();
    batch2.render(2);
    expect(container.textContent).toEqual('');
    batch1.commit();
    expect(container.textContent).toEqual('1');
    batch2.commit();
    expect(container.textContent).toEqual('2');
  });
  it('commits an earlier batch without committing a later batch', () => {