-/* tslint:disable:no-unused-expression */
+/* eslint-disable @typescript-eslint/no-unused-expressions,@typescript-eslint/require-await */
import 'mocha'
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'
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}`)