Skip to content

Commit

Permalink
Deploy presuppressions for v0.200.0 to xplat
Browse files Browse the repository at this point in the history
Reviewed By: mroch

Differential Revision: D43377746

fbshipit-source-id: 288fe8639420931ccc2f1b50a5f35090a2f023c3
  • Loading branch information
pieterv authored and facebook-github-bot committed Feb 17, 2023
1 parent 5e27b3b commit cbaec8f
Show file tree
Hide file tree
Showing 7 changed files with 15 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -28,6 +28,7 @@ describe('AutoCleanFileStore', () => {
});

it('sets and writes into the cache', async () => {
// $FlowFixMe[underconstrained-implicit-instantiation]
const fileStore = new AutoCleanFileStore({
root: '/root',
intervalMs: 49,
Expand All @@ -52,6 +53,7 @@ describe('AutoCleanFileStore', () => {
});

it('returns null when reading a non-existing file', async () => {
// $FlowFixMe[underconstrained-implicit-instantiation]
const fileStore = new AutoCleanFileStore({root: '/root'});
const cache = Buffer.from([0xfa, 0xce, 0xb0, 0x0c]);

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -47,6 +47,7 @@ beforeEach(() => {
],
]),
getSource: () => Buffer.from(''),
// $FlowFixMe[underconstrained-implicit-instantiation]
inverseDependencies: new CountingSet(),
output: [
{
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -44,6 +44,7 @@ beforeEach(() => {
],
]),
getSource: () => Buffer.from(''),
// $FlowFixMe[underconstrained-implicit-instantiation]
inverseDependencies: new CountingSet(),
output: [
{
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -144,6 +144,7 @@ describe('DeltaCalculator + require.context', () => {
}),
);

// $FlowFixMe[underconstrained-implicit-instantiation]
deltaCalculator = new DeltaCalculator(
new Set(['/bundle']),
fileWatcher,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -168,6 +168,7 @@ describe('DeltaCalculator', () => {
};
});

// $FlowFixMe[underconstrained-implicit-instantiation]
deltaCalculator = new DeltaCalculator(
new Set(['/bundle']),
fileWatcher,
Expand Down
1 change: 1 addition & 0 deletions packages/metro/src/__tests__/HmrServer-test.js
Original file line number Diff line number Diff line change
Expand Up @@ -159,6 +159,7 @@ describe('HmrServer', () => {

id = config.serializer.createModuleIdFactory();

// $FlowFixMe[underconstrained-implicit-instantiation]
hmrServer = new HmrServer(incrementalBundlerMock, id, config);

connect = async (relativeUrl: string, sendFn?: string => void) => {
Expand Down
8 changes: 8 additions & 0 deletions packages/metro/src/lib/__tests__/CountingSet-test.js
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,7 @@ import CountingSet from '../CountingSet';

describe('CountingSet', () => {
test('basic add/delete', () => {
// $FlowFixMe[underconstrained-implicit-instantiation]
const set = new CountingSet();

set.add('a');
Expand All @@ -27,6 +28,7 @@ describe('CountingSet', () => {
});

test('multiple add/delete', () => {
// $FlowFixMe[underconstrained-implicit-instantiation]
const set = new CountingSet();

set.add('a');
Expand All @@ -47,6 +49,7 @@ describe('CountingSet', () => {
});

test('more deletes than adds', () => {
// $FlowFixMe[underconstrained-implicit-instantiation]
const set = new CountingSet();

set.add('a');
Expand All @@ -58,6 +61,7 @@ describe('CountingSet', () => {
});

test('delete nonexistent value', () => {
// $FlowFixMe[underconstrained-implicit-instantiation]
const set = new CountingSet();

set.delete('a');
Expand Down Expand Up @@ -163,6 +167,7 @@ describe('CountingSet', () => {
});

test('spread', () => {
// $FlowFixMe[underconstrained-implicit-instantiation]
const set = new CountingSet();

set.add('a');
Expand All @@ -174,6 +179,7 @@ describe('CountingSet', () => {
});

test('keys()', () => {
// $FlowFixMe[underconstrained-implicit-instantiation]
const set = new CountingSet();

set.add('a');
Expand All @@ -185,6 +191,7 @@ describe('CountingSet', () => {
});

test('values()', () => {
// $FlowFixMe[underconstrained-implicit-instantiation]
const set = new CountingSet();

set.add('a');
Expand All @@ -196,6 +203,7 @@ describe('CountingSet', () => {
});

test('entries()', () => {
// $FlowFixMe[underconstrained-implicit-instantiation]
const set = new CountingSet();

set.add('a');
Expand Down

0 comments on commit cbaec8f

Please sign in to comment.