Skip to content

Commit 65a2e14

Browse files
excedfacebook-github-bot
authored andcommitted
Flow strict ScrollViewMock (facebook#22103)
Summary: Related to facebook#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 facebook#22101 - All flow tests succeed. [GENERAL] [ENHANCEMENT] [ScrollViewMock.js] - Flow strict mode Pull Request resolved: facebook#22103 Differential Revision: D12918380 Pulled By: TheSavior fbshipit-source-id: cd3aba47b1a43e76a7da09e15cc2d9cfcdf7f56d
1 parent 8a44d18 commit 65a2e14

File tree

1 file changed

+1
-3
lines changed

1 file changed

+1
-3
lines changed

Libraries/Components/ScrollView/__mocks__/ScrollViewMock.js

+1-3
Original file line numberDiff line numberDiff line change
@@ -5,15 +5,13 @@
55
* LICENSE file in the root directory of this source tree.
66
*
77
* @format
8-
* @flow
8+
* @flow strict-local
99
*/
1010

1111
/* eslint-env jest */
1212

1313
'use strict';
1414

15-
declare var jest: any;
16-
1715
const React = require('React');
1816
const View = require('View');
1917

0 commit comments

Comments
 (0)