Render sidebar
Summary: Restore sidebar functionality for Sandy plugins Also needed to fix some circular dependency issues as fallout. Reviewed By: cekkaewnumchai Differential Revision: D24362215 fbshipit-source-id: 0a09ac35ba981322ae0793edc3aa79ffddf2ce73
This commit is contained in:
committed by
Facebook GitHub Bot
parent
ba5f067320
commit
a2fac737f6
@@ -7,20 +7,12 @@
|
||||
* @format
|
||||
*/
|
||||
|
||||
import * as React from 'react';
|
||||
import * as Flipper from 'flipper';
|
||||
// eslint-disable-next-line
|
||||
import {act} from '@testing-library/react';
|
||||
|
||||
{
|
||||
// These mocks are needed because seammammals still uses Flipper in its UI implementation,
|
||||
// so we need to mock some things
|
||||
|
||||
// @ts-ignore
|
||||
jest.spyOn(Flipper.DetailSidebar, 'type').mockImplementation((props) => {
|
||||
return <div className="DetailsSidebar">{props.children}</div>;
|
||||
});
|
||||
|
||||
const origRequestIdleCallback = window.requestIdleCallback;
|
||||
const origCancelIdleCallback = window.cancelIdleCallback;
|
||||
// @ts-ignore
|
||||
|
||||
Reference in New Issue
Block a user