diff --git a/Libraries/Components/ScrollView/__mocks__/ScrollViewMock.js b/Libraries/Components/ScrollView/__mocks__/ScrollViewMock.js index 2263234a7c5928..6aa19b2f0eda40 100644 --- a/Libraries/Components/ScrollView/__mocks__/ScrollViewMock.js +++ b/Libraries/Components/ScrollView/__mocks__/ScrollViewMock.js @@ -8,8 +8,13 @@ * * @flow */ + +/* eslint-env jest */ + 'use strict'; +declare var jest: any; + const React = require('React'); const View = require('View'); @@ -17,7 +22,9 @@ const requireNativeComponent = require('requireNativeComponent'); const RCTScrollView = requireNativeComponent('RCTScrollView'); -class ScrollViewMock extends React.Component<$FlowFixMeProps> { +const ScrollViewComponent = jest.genMockFromModule('ScrollView'); + +class ScrollViewMock extends ScrollViewComponent { render() { return (