1
0
mirror of https://github.com/laurent22/joplin.git synced 2024-12-30 10:36:35 +02:00
joplin/packages/app-mobile/components/screens/ConfigScreen/plugins/testUtils/pluginServiceSetup.ts

18 lines
511 B
TypeScript

import PluginService from '@joplin/lib/services/plugins/PluginService';
import { Store } from 'redux';
import BasePluginRunner from '@joplin/lib/services/plugins/BasePluginRunner';
class MockPluginRunner extends BasePluginRunner {
public override async run() {}
public override async stop() {}
}
const pluginServiceSetup = (store: Store) => {
const runner = new MockPluginRunner();
PluginService.instance().initialize(
'2.14.0', { joplin: {} }, runner, store,
);
};
export default pluginServiceSetup;