MCPcopy Create free account
hub / github.com/gotify/server / newPluginDir

Function newPluginDir

ui/src/tests/setup.ts:22–28  ·  view source on GitHub ↗
(plugins: string[])

Source from the content-addressed store, hash-verified

20const testBuildPath = path.join(__dirname, 'build');
21
22export const newPluginDir = async (plugins: string[]): Promise<string> => {
23 const {dir, generator} = testPluginDir();
24 for (const pluginName of plugins) {
25 await buildGoPlugin(generator(), pluginName);
26 }
27 return dir;
28};
29
30export const newTest = async (pluginsDir = ''): Promise<GotifyTest> => {
31 const port = await getPort();

Callers 1

plugin.test.tsFile · 0.90

Calls 2

testPluginDirFunction · 0.85
buildGoPluginFunction · 0.85

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…