From 8ab456c16e757642cf2d9f55ab178dbdf5bb1f32 Mon Sep 17 00:00:00 2001 From: Aleksandr Statciuk Date: Mon, 7 Feb 2022 08:42:35 +0300 Subject: [PATCH] Update generate-playlists.test.js --- tests/commands/generate-playlists.test.js | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/tests/commands/generate-playlists.test.js b/tests/commands/generate-playlists.test.js index a5f4438f1b..b322a5750b 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' } ) })