diff --git a/tests/commands/generate-playlists.test.js b/tests/commands/generate-playlists.test.js index a5f4438f1..b322a5750 100644 --- a/tests/commands/generate-playlists.test.js +++ b/tests/commands/generate-playlists.test.js @@ -5,14 +5,13 @@ const { execSync } = require('child_process') beforeEach(() => { fs.emptyDirSync('tests/__data__/output') - fs.emptyDirSync('tests/__data__/temp') fs.copyFileSync( 'tests/__data__/input/database/generate-playlists.streams.db', - 'tests/__data__/temp/streams.db' + 'tests/__data__/output/streams.db' ) const stdout = execSync( - 'DB_DIR=tests/__data__/temp DATA_DIR=tests/__data__/input/data PUBLIC_DIR=tests/__data__/output/.gh-pages LOGS_DIR=tests/__data__/output/logs/generators node --trace-warnings scripts/commands/generate-playlists.js', + 'DB_DIR=tests/__data__/output DATA_DIR=tests/__data__/input/data PUBLIC_DIR=tests/__data__/output/.gh-pages LOGS_DIR=tests/__data__/output/logs/generators node --trace-warnings scripts/commands/generate-playlists.js', { encoding: 'utf8' } ) })