We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent fd217a9 commit bc1ee18Copy full SHA for bc1ee18
tests/CSSMotion.spec.tsx
@@ -194,6 +194,9 @@ describe('CSSMotion', () => {
194
});
195
196
fireEvent.transitionEnd(container.querySelector('.motion-box'));
197
+ act(() => {
198
+ jest.runAllTimers();
199
+ });
200
201
expect(container.querySelector('.motion-box')).toHaveClass('removed');
202
@@ -805,6 +808,9 @@ describe('CSSMotion', () => {
805
808
806
809
807
810
811
812
813
814
815
expect(container.querySelector('.motion-box')).toBeTruthy();
816
0 commit comments