Skip to content

Commit

Permalink
Mobile - Update tests
Browse files Browse the repository at this point in the history
  • Loading branch information
Gerardo committed Oct 11, 2022
1 parent 4d1b2c0 commit 8cb74a6
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 8 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,6 @@ Array [
accessible={true}
collapsable={false}
focusable={true}
nativeID="animatedComponent"
onClick={[Function]}
onResponderGrant={[Function]}
onResponderMove={[Function]}
Expand Down Expand Up @@ -75,7 +74,6 @@ Array [
accessible={true}
collapsable={false}
focusable={true}
nativeID="animatedComponent"
onClick={[Function]}
onResponderGrant={[Function]}
onResponderMove={[Function]}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -44,9 +44,7 @@ exports[`File block renders file error state without crashing 1`] = `
"color": "gray",
}
}
>
</Text>
/>
<View
style={
Object {
Expand Down Expand Up @@ -266,9 +264,7 @@ exports[`File block renders file without crashing 1`] = `
"color": "gray",
}
}
>
</Text>
/>
<View
style={
Object {
Expand Down
3 changes: 3 additions & 0 deletions test/native/setup.js
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,9 @@ require( '../../packages/react-native-editor/src/globals' );
// Set up Reanimated library for testing
require( 'react-native-reanimated/lib/reanimated2/jestUtils' ).setUpTests();
global.__reanimatedWorkletInit = jest.fn();
global.ReanimatedDataMock = {
now: () => 0,
};

RNNativeModules.UIManager = RNNativeModules.UIManager || {};
RNNativeModules.UIManager.RCTView = RNNativeModules.UIManager.RCTView || {};
Expand Down

0 comments on commit 8cb74a6

Please sign in to comment.