Got this debugging another error. Filing here for reference. Original code: https://phabricator.intern.facebook.com/P59317705
return now;
      },
    };
    jest.resetModules();
    require('shared/ReactFeatureFlags').enableCreateRoot = true;
    React = require('react');
    ReactDOM = require('react-dom');
    ReactDOMServer = require('react-dom/server');
    AsyncMode = React.unstable_AsyncMode;
  });
  it('renders children', () => {
    const root = ReactDOM.createRoot(container);
    root.render(<div>Hi</div>);
    flush();
    expect(container.textContent).toEqual('Hi');
  });
  it('unmounts children', () => {
    const root = ReactDOM.createRoot(container);
    root.render(<div>Hi</div>);
    flush();
    expect(container.textContent).toEqual('Hi');
    root.unmount();
    flush();
    expect(container.textContent).toEqual('');
  });
  it('`root.render` returns a thenable work object', () => {