Skip to content

Commit

Permalink
Add flow types for ReactTestRenderer
Browse files Browse the repository at this point in the history
Reviewed By: cpojer

Differential Revision: D20260771

fbshipit-source-id: 3935e546ebbc65a1baa9d0a25cff47753f6bc590
  • Loading branch information
logandaniels authored and facebook-github-bot committed Mar 5, 2020
1 parent 39ac0d0 commit 7be1a84
Show file tree
Hide file tree
Showing 6 changed files with 8 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -425,6 +425,7 @@ describe('useBlockingPaginationFragment', () => {
</ContextProvider>
</React.Suspense>
</ErrorBoundary>,
// $FlowFixMe - error revealed when flow-typing ReactTestRenderer
{unstable_isConcurrent: isConcurrent},
);
});
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -415,6 +415,7 @@ describe('useBlockingPaginationFragment with useSuspenseTransition', () => {
</ContextProvider>
</React.Suspense>
</ErrorBoundary>,
// $FlowFixMe - error revealed when flow-typing ReactTestRenderer
{unstable_isConcurrent: isConcurrent},
);
});
Expand Down Expand Up @@ -517,6 +518,7 @@ describe('useBlockingPaginationFragment with useSuspenseTransition', () => {
renderSpy.mockClear();

// $FlowFixMe(site=www) batchedUpdats is not part of the public Flow types
// $FlowFixMe - error revealed when flow-typing ReactTestRenderer
TestRenderer.unstable_batchedUpdates(() => {
runScheduledCallback();
jest.runAllImmediates();
Expand Down
2 changes: 2 additions & 0 deletions packages/relay-experimental/__tests__/useFragmentNode-test.js
Original file line number Diff line number Diff line change
Expand Up @@ -301,6 +301,7 @@ beforeEach(() => {
<SingularContainer owner={singularQuery} {...props} />
</ContextProvider>
</React.Suspense>,
// $FlowFixMe - error revealed when flow-typing ReactTestRenderer
{unstable_isConcurrent: isConcurrent},
);
};
Expand All @@ -320,6 +321,7 @@ beforeEach(() => {
<PluralContainer owner={pluralQuery} {...props} />
</ContextProvider>
</React.Suspense>,
// $FlowFixMe - error revealed when flow-typing ReactTestRenderer
{unstable_isConcurrent: isConcurrent},
);
};
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -486,6 +486,7 @@ describe('usePaginationFragment', () => {
</ContextProvider>
</React.Suspense>
</ErrorBoundary>,
// $FlowFixMe - error revealed when flow-typing ReactTestRenderer
{unstable_isConcurrent: isConcurrent},
);
});
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -186,6 +186,7 @@ describe('useRefetchableFragment', () => {
<Container owner={query} {...props} />
</ContextProvider>
</React.Suspense>,
// $FlowFixMe - error revealed when flow-typing ReactTestRenderer
{unstable_isConcurrent: isConcurrent},
);
};
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -307,6 +307,7 @@ describe('useRefetchableFragmentNode', () => {
</ContextProvider>
</React.Suspense>
</ErrorBoundary>,
// $FlowFixMe - error revealed when flow-typing ReactTestRenderer
{unstable_isConcurrent: isConcurrent},
);
});
Expand Down

0 comments on commit 7be1a84

Please sign in to comment.