2024-03-11 17:02:15 +02:00
|
|
|
import PluginService from '@joplin/lib/services/plugins/PluginService';
|
2024-05-02 18:05:25 +02:00
|
|
|
import { Store } from 'redux';
|
|
|
|
import BasePluginRunner from '@joplin/lib/services/plugins/BasePluginRunner';
|
2024-03-11 17:02:15 +02:00
|
|
|
|
2024-05-02 18:05:25 +02:00
|
|
|
class MockPluginRunner extends BasePluginRunner {
|
|
|
|
public override async run() {}
|
|
|
|
public override async stop() {}
|
|
|
|
}
|
|
|
|
|
|
|
|
const pluginServiceSetup = (store: Store) => {
|
|
|
|
const runner = new MockPluginRunner();
|
2024-03-11 17:02:15 +02:00
|
|
|
PluginService.instance().initialize(
|
2024-05-02 18:05:25 +02:00
|
|
|
'2.14.0', { joplin: {} }, runner, store,
|
2024-03-11 17:02:15 +02:00
|
|
|
);
|
|
|
|
};
|
|
|
|
|
|
|
|
export default pluginServiceSetup;
|