if (inAnimationCallback) {
              console.warn(
                'Ignoring recursive animation callback when running mock animations',
              );
              return;
            }
Animations are a source of flakiness in snapshot testing. This mock replaces
animation functions from AnimatedImplementation with empty animations for
predictability in tests. When possible the animation will run immediately
to the final state.