Unit tests for finishinh plugin installation step
Summary: Added unit test covering finishing of plugin installation on Flipper startup Reviewed By: mweststrate Differential Revision: D21949628 fbshipit-source-id: a8b3a320c1ddd151ebbd63d7a6d596320ca8e25a
This commit is contained in:
committed by
Facebook GitHub Bot
parent
d27fa34505
commit
bf62c8cbe4
@@ -253,7 +253,7 @@ export async function finishPendingPluginInstallations() {
|
||||
pluginInstallationDir,
|
||||
'.watchmanconfig',
|
||||
);
|
||||
if (await fs.pathExists(watchmanConfigPath)) {
|
||||
if (!(await fs.pathExists(watchmanConfigPath))) {
|
||||
await fs.writeFile(watchmanConfigPath, '{}');
|
||||
}
|
||||
const pendingPlugins = await fs.readdir(pluginPendingInstallationDir);
|
||||
|
||||
Reference in New Issue
Block a user