You've already forked joplin
mirror of
https://github.com/laurent22/joplin.git
synced 2025-07-10 00:05:42 +02:00
12 lines
362 B
TypeScript
12 lines
362 B
TypeScript
![]() |
import RepositoryApi from '@joplin/lib/services/plugins/RepositoryApi';
|
||
|
import { createTempDir, supportDir } from '@joplin/lib/testing/test-utils';
|
||
|
|
||
|
|
||
|
const newRepoApi = async (): Promise<RepositoryApi> => {
|
||
|
const repo = new RepositoryApi(`${supportDir}/pluginRepo`, await createTempDir());
|
||
|
await repo.initialize();
|
||
|
return repo;
|
||
|
};
|
||
|
|
||
|
export default newRepoApi;
|