X-Git-Url: https://git.immae.eu/?a=blobdiff_plain;f=server%2Ftests%2Fcli%2Fplugins.ts;h=a5257d671bce4e9b3f0f171639c2d6ce6628f70f;hb=89cd12756035a146bbcc4db78cd3cd64f2f3d88d;hp=d7bf8a69046d057a4c81109a2c1afa311e9509b3;hpb=09071200c73f5358e1d0bfb61a274e4f2c4ec52b;p=github%2FChocobozzz%2FPeerTube.git diff --git a/server/tests/cli/plugins.ts b/server/tests/cli/plugins.ts index d7bf8a690..a5257d671 100644 --- a/server/tests/cli/plugins.ts +++ b/server/tests/cli/plugins.ts @@ -6,13 +6,13 @@ import { execCLI, flushAndRunServer, getConfig, - getEnvCli, killallServers, + getEnvCli, + getPluginTestPath, + killallServers, reRunServer, - root, ServerInfo, setAccessTokensToServers } from '../../../shared/extra-utils' -import { join } from 'path' import { ServerConfig } from '../../../shared/models/server' import { expect } from 'chai' @@ -29,7 +29,7 @@ describe('Test plugin scripts', function () { it('Should install a plugin from stateless CLI', async function () { this.timeout(60000) - const packagePath = join(root(), 'server', 'tests', 'fixtures', 'peertube-plugin-test') + const packagePath = getPluginTestPath() const env = getEnvCli(server) await execCLI(`${env} npm run plugin:install -- --plugin-path ${packagePath}`)