message: Unit tested Crumb set state for dynamic api
diff: @@ -1756,24 +1756,28 @@ describe('NavigationMotion', function () {
  });
  describe('Crumb set state', function () {
  - it('should not render', function(){
  - var stateNavigator = new StateNavigator([
  - { key: 'sceneA' },
  - { key: 'sceneB', trackCrumbTrail: true },
  - ]);
  - stateNavigator.navigate('sceneA');
  - var {sceneA, sceneB} = stateNavigator.states;
  - var update;
  + var stateNavigator, root, container: HTMLDivElement, update;
  var SceneA = () => {
  var [updated, setUpdated] = useState(false)
  update = setUpdated;
  return <div id='sceneA' data-updated={updated} />;
  };
  var SceneB = () => <div id="sceneB" />;
  + beforeEach(() => {
  + update = null;
  + stateNavigator = new StateNavigator([
  + { key: 'sceneA' },
  + { key: 'sceneB', trackCrumbTrail: true },
  + ]);
  + stateNavigator.navigate('sceneA');
  + container = document.createElement('div');
  + root = createRoot(container)
  + });
  + describe('Static', () => {
  + it('should not render', function(){
  + var {sceneA, sceneB} = stateNavigator.states;
  sceneA.renderScene = () => <SceneA />;
  sceneB.renderScene = () => <SceneB />;
  - var container = document.createElement('div');
  - var root = createRoot(container)
  act(() => {
  root.render(
  <NavigationHandler stateNavigator={stateNavigator}>
  @@ -1785,6 +1789,28 @@ describe('NavigationMotion', function () {
  </NavigationHandler>
  );
  });
  + test();
  + })
  + });
  + describe('Dynamic', () => {
  + it('should not render', function(){
  + act(() => {
  + root.render(
  + <NavigationHandler stateNavigator={stateNavigator}>
  + <NavigationMotion
  + renderMotion={(_style, scene, key) => (
  + <div className="scene" id={key} key={key}>{scene}</div>
  + )}>
  + <Scene stateKey="sceneA"><SceneA /></Scene>
  + <Scene stateKey="sceneB"><SceneB /></Scene>
  + </NavigationMotion>
  + </NavigationHandler>
  + );
  + });
  + test();
  + })
  + });
  + const test = () => {
  act(() => {
  stateNavigator.navigate('sceneB');
  });
  @@ -1797,7 +1823,7 @@ describe('NavigationMotion', function () {
  } finally {
  act(() => root.unmount());
  }
  - })
  + };
  });
  describe('Crumb set state navigate back', function () {
  