message: Tested outside react refresh
diff: @@ -2967,6 +2967,34 @@ describe('RefreshLinkTest', function () {
  })
  });
  + describe('Outside React Refresh', function () {
  + it('should flush sync', function(){
  + var stateNavigator = new StateNavigator([
  + { key: 's', route: 'r' }
  + ]);
  + var {s} = stateNavigator.states;
  + var Scene = ({ x }) => <div>{x ? 1 : 0}</div>;
  + s.renderScene = ({ x }) => <Scene x={x} />;
  + stateNavigator.navigate('s');
  + var container = document.createElement('div');
  + var root = (ReactDOM as any).createRoot(container)
  + act(() => {
  + root.render(
  + <NavigationHandler stateNavigator={stateNavigator}>
  + <NavigationContext.Consumer>
  + {({state, data}) => state.renderScene(data)}
  + </NavigationContext.Consumer>
  + </NavigationHandler>,
  + container
  + );
  + });
  + stateNavigator.navigate('s', {x: 'a'});
  + var div = container.querySelector<HTMLDivElement>('div');
  + assert.equal(div.innerHTML, '1');
  + assert.equal(stateNavigator.stateContext.data.x, 'a');
  + })
  + });
  +
  /*describe('Click Deferred Refresh Link', function () {
  it('should navigate async', function(done){
  var stateNavigator = new StateNavigator([
  