Summary: Adds a test runner for jest test and adds three simple test cases: - render the app - start a server - client connecting to the app Test can be run using `yarn test`. To make the test runner work, some changes needed to be made: - remove the export of `init()` from `'flipper'`, because it was a cyclic dependency - updating Button.js to the new ref-API Reviewed By: jknoxville Differential Revision: D10027078 fbshipit-source-id: 49107b0dd4dec666b92ecd841422fe7e6b3a7756
31 lines
895 B
JavaScript
31 lines
895 B
JavaScript
/**
|
|
* Copyright 2018-present Facebook.
|
|
* This source code is licensed under the MIT license found in the
|
|
* LICENSE file in the root directory of this source tree.
|
|
* @format
|
|
*/
|
|
|
|
export {default as styled} from 'react-emotion';
|
|
export * from './ui/index.js';
|
|
export * from './utils/index.js';
|
|
|
|
export {default as GK} from './fb-stubs/GK.js';
|
|
export {
|
|
FlipperBasePlugin,
|
|
FlipperPlugin,
|
|
FlipperDevicePlugin,
|
|
} from './plugin.js';
|
|
|
|
export * from './fb-stubs/constants.js';
|
|
|
|
export {
|
|
default as SidebarExtensions,
|
|
} from './fb-stubs/LayoutInspectorSidebarExtensions.js';
|
|
|
|
export {createTablePlugin} from './createTablePlugin.js';
|
|
export {default as DetailSidebar} from './chrome/DetailSidebar.js';
|
|
|
|
export {default as AndroidDevice} from './devices/AndroidDevice.js';
|
|
export {default as Device} from './devices/BaseDevice.js';
|
|
export {default as IOSDevice} from './devices/IOSDevice.js';
|