Update tests

This commit is contained in:
freearhey
2025-04-16 20:19:31 +03:00
parent 8225e59a0a
commit 2d44218887
3 changed files with 50 additions and 2 deletions

View File

@@ -7,11 +7,13 @@ beforeEach(() => {
})
it('can generate playlists and logs', () => {
execSync(
const stdout = execSync(
'STREAMS_DIR=tests/__data__/input/playlist_generate DATA_DIR=tests/__data__/input/data PUBLIC_DIR=tests/__data__/output/.gh-pages LOGS_DIR=tests/__data__/output/logs npm run playlist:generate',
{ encoding: 'utf8' }
)
if (process.env.DEBUG === 'true') console.log(stdout)
const playlists = glob
.sync('tests/__data__/expected/playlist_generate/.gh-pages/**/*.m3u')
.map((file: string) => file.replace('tests/__data__/expected/playlist_generate/', ''))