Skip to content

Commit

Permalink
Remove unused react-native Animated mock
Browse files Browse the repository at this point in the history
This mock appears to be unnecessary for our current test suite. It also
leveraged an internal module path, which is brittle. It would break if
React Native decided to alter its path.

If we need to reinstate this mock in the future, we should likely
explore the following approach instead. https://git.io/JtNmU
  • Loading branch information
dcalhoun committed Feb 26, 2021
1 parent f3b8aee commit 3f411ef
Showing 1 changed file with 0 additions and 3 deletions.
3 changes: 0 additions & 3 deletions test/native/setup.js
Original file line number Diff line number Diff line change
Expand Up @@ -115,9 +115,6 @@ jest.mock( 'react-native-reanimated', () => {
return Reanimated;
} );

// Silence the warning: Animated: `useNativeDriver` is not supported because the native animated module is missing
jest.mock( 'react-native/Libraries/Animated/src/NativeAnimatedHelper' );

// We currently reference TextStateInput (a private module) within
// react-native-aztec/src/AztecView. Doing so requires that we mock it via its
// internal path to avoid "TypeError: Cannot read property 'Commands' of
Expand Down

0 comments on commit 3f411ef

Please sign in to comment.