Add infra to test a plugin

Summary:
There were several reports that it is hard to test an entire plugin, and send updates.

This should address that and help with avoiding plugin regressions in the future.

Added a `renderMockFlipperWithPlugin` utility and demo test.

Reviewed By: passy

Differential Revision: D22114217

fbshipit-source-id: ceefd954abc4ea47c336eab495fb50f161993df9
This commit is contained in:
Michel Weststrate
2020-06-22 06:04:14 -07:00
committed by Facebook GitHub Bot
parent 5dd6edc533
commit f373872b5c
3 changed files with 148 additions and 9 deletions

View File

@@ -178,7 +178,7 @@ export function activateMenuItems(
}
// set the application menu again to make sure it updates
electron.remote.Menu.setApplicationMenu(
electron.remote.Menu?.setApplicationMenu(
electron.remote.Menu.getApplicationMenu(),
);
}