Jest mock für Joplin API

Hello all,

I wanted to add some tests using jest for my plugins.
How can I write for example a mock for joplin.settings.value with parameter to test e.g. the function getDoubleNumber.

Example repo: GitHub - JackGruber/joplin-plugin-jest

I've been trying for a few hours, but I can't get it to work.
I hope you can help me, or give me the right impulse to think

To mock a function, you can use the built-in jest.mock for example like it's done in packages/app-desktop/gui/ConfigScreen/controls/plugins/useOnInstallHandler.test.ts to mock the PluginService.