X-Git-Url: https://git.immae.eu/?a=blobdiff_plain;f=server%2Ftests%2Fcli%2Fplugins.ts;h=7f19f14b7f7e6eac7c30033d4fa4aca8e748f0bf;hb=a3b7421abb4192e215aa280418b62e96958c5e42;hp=d7bf8a69046d057a4c81109a2c1afa311e9509b3;hpb=9b474844e85cce916370693cc24f53339a695570;p=github%2FChocobozzz%2FPeerTube.git diff --git a/server/tests/cli/plugins.ts b/server/tests/cli/plugins.ts index d7bf8a690..7f19f14b7 100644 --- a/server/tests/cli/plugins.ts +++ b/server/tests/cli/plugins.ts @@ -1,4 +1,4 @@ -/* tslint:disable:no-unused-expression */ +/* eslint-disable @typescript-eslint/no-unused-expressions,@typescript-eslint/require-await */ import 'mocha' import { @@ -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}`)