import 'mocha'
import { expect } from 'chai'
-import { pathExists, remove } from 'fs-extra'
+import { pathExists, readdir, remove } from 'fs-extra'
import { join } from 'path'
import {
areHttpImportTestsDisabled,
transcoding: {
enabled: true,
resolutions: {
+ '144p': true,
'240p': true,
'360p': false,
'480p': false,
await quickPeerTubeImport()
- expect(await pathExists(join(server.servers.buildDirectory('bin'), releaseName))).to.be.true
+ const base = server.servers.buildDirectory('bin')
+ const content = await readdir(base)
+ const binaryPath = join(base, releaseName)
+
+ expect(await pathExists(binaryPath), `${binaryPath} does not exist in ${base} (${content.join(', ')})`).to.be.true
}
before(async function () {
await testBinaryUpdate('https://api.github.com/repos/yt-dlp/yt-dlp/releases', 'yt-dlp')
})
+
+ after(async function () {
+ await cleanupTests([ server ])
+ })
})
})