From 499c195ebab0f276e3a58baf1e6172c1ba046a9e Mon Sep 17 00:00:00 2001 From: Thomas BARRAS Date: Sat, 3 Nov 2018 22:12:36 -0700 Subject: [PATCH] Flow strict ScrollViewMock (#22103) Summary: Related to #22100 Turn Flow strict mode on for ScrollViewMock. This file used to declare jest var as `any` but jest module is already typed in root flow folder. Note: I had to use a quick fix for polyfillPromise. See here #22101 - All flow tests succeed. [GENERAL] [ENHANCEMENT] [ScrollViewMock.js] - Flow strict mode Pull Request resolved: https://github.com/facebook/react-native/pull/22103 Differential Revision: D12918380 Pulled By: TheSavior fbshipit-source-id: cd3aba47b1a43e76a7da09e15cc2d9cfcdf7f56d --- Libraries/Components/ScrollView/__mocks__/ScrollViewMock.js | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/Libraries/Components/ScrollView/__mocks__/ScrollViewMock.js b/Libraries/Components/ScrollView/__mocks__/ScrollViewMock.js index 17e55550f..a2367c357 100644 --- a/Libraries/Components/ScrollView/__mocks__/ScrollViewMock.js +++ b/Libraries/Components/ScrollView/__mocks__/ScrollViewMock.js @@ -5,15 +5,13 @@ * LICENSE file in the root directory of this source tree. * * @format - * @flow + * @flow strict-local */ /* eslint-env jest */ 'use strict'; -declare var jest: any; - const React = require('React'); const View = require('View');