Skip to content

Commit 0a936c2

Browse files
authored
Upgrade Flow in fbsource
Summary: Changelog: [internal] ___ Differential Revision: D123876897 Pull Request resolved: #2035
1 parent a33cc66 commit 0a936c2

2 files changed

Lines changed: 9 additions & 0 deletions

File tree

‎packages/metro/src/DeltaBundler/__tests__/DeltaCalculator-context-test.js‎

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -114,6 +114,7 @@ describe('DeltaCalculator + require.context', () => {
114114
output: [],
115115
path: p('/bundle'),
116116
// $FlowFixMe[prop-missing]
117+
// $FlowFixMe[incompatible-type]
117118
getSource: () => Buffer.of(),
118119
});
119120
this.dependencies.set(p('/ctx?ctx=xxx'), {
@@ -138,6 +139,7 @@ describe('DeltaCalculator + require.context', () => {
138139
output: [],
139140
path: p('/ctx?ctx=xxx'),
140141
// $FlowFixMe[prop-missing]
142+
// $FlowFixMe[incompatible-type]
141143
getSource: () => Buffer.of(),
142144
});
143145
this.dependencies.set(p('/ctx/foo'), {
@@ -146,6 +148,7 @@ describe('DeltaCalculator + require.context', () => {
146148
output: [],
147149
path: p('/ctx/foo'),
148150
// $FlowFixMe[prop-missing]
151+
// $FlowFixMe[incompatible-type]
149152
getSource: () => Buffer.of(),
150153
});
151154

‎packages/metro/src/DeltaBundler/__tests__/DeltaCalculator-test.js‎

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -134,6 +134,7 @@ describe.each(['posix', 'win32'])('DeltaCalculator (%s)', osPlatform => {
134134
output: [],
135135
path: p('/bundle'),
136136
// $FlowFixMe[prop-missing]
137+
// $FlowFixMe[incompatible-type]
137138
getSource: () => Buffer.of(),
138139
};
139140
fooModule = {
@@ -158,6 +159,7 @@ describe.each(['posix', 'win32'])('DeltaCalculator (%s)', osPlatform => {
158159
output: [],
159160
path: p('/foo'),
160161
// $FlowFixMe[prop-missing]
162+
// $FlowFixMe[incompatible-type]
161163
getSource: () => Buffer.of(),
162164
};
163165
barModule = {
@@ -166,6 +168,7 @@ describe.each(['posix', 'win32'])('DeltaCalculator (%s)', osPlatform => {
166168
output: [],
167169
path: p('/bar'),
168170
// $FlowFixMe[prop-missing]
171+
// $FlowFixMe[incompatible-type]
169172
getSource: () => Buffer.of(),
170173
};
171174
bazModule = {
@@ -174,6 +177,7 @@ describe.each(['posix', 'win32'])('DeltaCalculator (%s)', osPlatform => {
174177
output: [],
175178
path: p('/baz'),
176179
// $FlowFixMe[prop-missing]
180+
// $FlowFixMe[incompatible-type]
177181
getSource: () => Buffer.of(),
178182
};
179183
quxModule = {
@@ -182,6 +186,7 @@ describe.each(['posix', 'win32'])('DeltaCalculator (%s)', osPlatform => {
182186
output: [],
183187
path: p('/qux'),
184188
// $FlowFixMe[prop-missing]
189+
// $FlowFixMe[incompatible-type]
185190
getSource: () => Buffer.of(),
186191
};
187192

@@ -392,6 +397,7 @@ describe.each(['posix', 'win32'])('DeltaCalculator (%s)', osPlatform => {
392397
output: [],
393398
path: p('/qux'),
394399
// $FlowFixMe[prop-missing]
400+
// $FlowFixMe[incompatible-type]
395401
getSource: () => Buffer.of(),
396402
};
397403

0 commit comments

Comments
 (0)