mirror of
https://github.com/callstack/react-native-testing-library.git
synced 2026-09-18 23:09:04 +08:00
fix: RN Gesture Handler Pressable support (#1746)
This commit is contained in:
committed by
GitHub
parent
a9c056bd02
commit
bd78a26b2a
@@ -20,7 +20,7 @@ describe('AnimatedView', () => {
|
||||
);
|
||||
expect(screen.root).toHaveStyle({ opacity: 0 });
|
||||
|
||||
await act(() => jest.advanceTimersByTime(250));
|
||||
act(() => jest.advanceTimersByTime(250));
|
||||
expect(screen.root).toHaveStyle({ opacity: 1 });
|
||||
});
|
||||
|
||||
@@ -32,7 +32,7 @@ describe('AnimatedView', () => {
|
||||
);
|
||||
expect(screen.root).toHaveStyle({ opacity: 0 });
|
||||
|
||||
await act(() => jest.advanceTimersByTime(250));
|
||||
act(() => jest.advanceTimersByTime(250));
|
||||
expect(screen.root).toHaveStyle({ opacity: 1 });
|
||||
});
|
||||
});
|
||||
|
||||
Reference in New Issue
Block a user