ref(ui): Remove testableTransition utility#112277
Merged
evanpurkhiser merged 1 commit intomasterfrom Apr 6, 2026
Merged
Conversation
Contributor
There was a problem hiding this comment.
Cursor Bugbot has reviewed your changes and found 1 potential issue.
Bugbot Autofix prepared a fix for the issue found in the latest run.
- ✅ Fixed: Global animation disable not applied in unit tests
- Added MotionGlobalConfig.skipAnimations = true to tests/js/setup.ts jest setup file to ensure animations are disabled in all unit tests.
Or push these changes by commenting:
@cursor push 6df57ec46a
Preview (6df57ec46a)
diff --git a/tests/js/setup.ts b/tests/js/setup.ts
--- a/tests/js/setup.ts
+++ b/tests/js/setup.ts
@@ -12,6 +12,7 @@
import {type ReactElement} from 'react';
import {configure as configureRtl} from '@testing-library/react'; // eslint-disable-line no-restricted-imports
+import {MotionGlobalConfig} from 'framer-motion';
import {enableFetchMocks} from 'jest-fetch-mock';
import {ConfigFixture} from 'sentry-fixture/config';
@@ -27,6 +28,11 @@
import * as performanceForSentry from 'sentry/utils/performanceForSentry';
/**
+ * Disable framer-motion animations in tests
+ */
+MotionGlobalConfig.skipAnimations = true;
+
+/**
* Set locale to English
*/
setLocale(DEFAULT_LOCALE_DATA);This Bugbot Autofix run was free. To enable autofix for future PRs, go to the Cursor dashboard.
Reviewed by Cursor Bugbot for commit 4e1fa19. Configure here.
4e1fa19 to
14007b2
Compare
14007b2 to
087393e
Compare
scttcper
reviewed
Apr 6, 2026
Comment on lines
+47
to
+48
| import {MotionGlobalConfig} from 'framer-motion'; | ||
| MotionGlobalConfig.skipAnimations = true; |
scttcper
approved these changes
Apr 6, 2026
Animations are now disabled globally in tests via framer-motion's MotionGlobalConfig, making the per-transition testableTransition wrapper unnecessary.
087393e to
fdf114a
Compare
george-sentry
pushed a commit
that referenced
this pull request
Apr 9, 2026
Animations are now disabled globally in tests via framer-motion's MotionGlobalConfig, making the per-transition testableTransition wrapper unnecessary.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.


Animations are now disabled globally in tests via framer-motion's MotionGlobalConfig, making the per-transition testableTransition wrapper unnecessary.