Got this debugging another error. Filing here for reference. Original code: https://phabricator.intern.facebook.com/P59317705
ops.push('Foo');
      return props.children;
    }
    const root = ReactDOM.createRoot(container);
    const batch = root.createBatch();
    batch.render(<Foo>Hi</Foo>);
    
    flush();
    
    expect(ops).toEqual(['Foo']);
    expect(container.textContent).toEqual('');
    ops = [];
    
    batch.commit();
    expect(ops).toEqual([]);
    expect(container.textContent).toEqual('Hi');
  });
  it('can wait for a batch to finish', () => {