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

12 lines
420 B
TypeScript

import PluginService from '@joplin/lib/services/plugins/PluginService';
const pluginServiceSetup = () => {
// eslint-disable-next-line @typescript-eslint/no-explicit-any -- Old code before rule was applied
const runner = { run: ()=> {}, stop: ()=>{} } as any;
PluginService.instance().initialize(
'2.14.0', { joplin: {} }, runner, { dispatch: ()=>{}, getState: ()=>{} },
);
};
export default pluginServiceSetup;