|
|
|
@ -4,7 +4,8 @@ import { EOL } from 'node:os'
|
|
|
|
import * as fs from 'fs-extra'
|
|
|
|
import * as fs from 'fs-extra'
|
|
|
|
import * as glob from 'glob'
|
|
|
|
import * as glob from 'glob'
|
|
|
|
|
|
|
|
|
|
|
|
const ENV_VAR = 'cross-env 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'
|
|
|
|
const ENV_VAR =
|
|
|
|
|
|
|
|
'cross-env 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'
|
|
|
|
|
|
|
|
|
|
|
|
beforeEach(() => {
|
|
|
|
beforeEach(() => {
|
|
|
|
fs.emptyDirSync('tests/__data__/output')
|
|
|
|
fs.emptyDirSync('tests/__data__/output')
|
|
|
|
@ -26,7 +27,7 @@ describe('playlist:generate', () => {
|
|
|
|
})
|
|
|
|
})
|
|
|
|
|
|
|
|
|
|
|
|
playlists.forEach((filepath: string) => {
|
|
|
|
playlists.forEach((filepath: string) => {
|
|
|
|
expect(content(`tests/__data__/output/${filepath}`)).toBe(
|
|
|
|
expect(content(`tests/__data__/output/${filepath}`), filepath).toBe(
|
|
|
|
content(`tests/__data__/expected/playlist_generate/${filepath}`)
|
|
|
|
content(`tests/__data__/expected/playlist_generate/${filepath}`)
|
|
|
|
)
|
|
|
|
)
|
|
|
|
})
|
|
|
|
})
|
|
|
|
|