Got this debugging another error. Filing here for reference. Original code: https://phabricator.intern.facebook.com/P59317705
root.render(
      <div>
        <span>c</span>
        <span>d</span>
      </div>,
    );
    flush();
    expect(container.textContent).toEqual('abcd');
    root.render(
      <div>
        <span>d</span>
        <span>c</span>
      </div>,
    );
    flush();
    expect(container.textContent).toEqual('abdc');
  });
  it('can defer a commit by batching it', () => {
    const root = ReactDOM.createRoot(container);
    const batch = root.createBatch();
    batch.render(<div>Hi</div>);
    
    expect(container.textContent).toEqual('');
    
    batch.commit();
    expect(container.textContent).toEqual('Hi');
  });
  it('does not restart a completed batch when committing if there were no intervening updates', () => {
    let ops = [];
    function Foo(props) {