From e93d677927756806769e86619d89a1a7ec6cc8d7 Mon Sep 17 00:00:00 2001 From: Aleksandr Statciuk Date: Sun, 12 Dec 2021 08:08:55 +0300 Subject: [PATCH] Update update-database.test.js --- tests/commands/update-database.test.js | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) diff --git a/tests/commands/update-database.test.js b/tests/commands/update-database.test.js index d235e9a29d..f70f6fabc0 100644 --- a/tests/commands/update-database.test.js +++ b/tests/commands/update-database.test.js @@ -3,12 +3,9 @@ const path = require('path') const { execSync } = require('child_process') beforeEach(() => { - fs.copyFileSync('tests/__data__/input/test.db', 'tests/__data__/temp/test.db') -}) - -afterEach(() => { fs.rmdirSync('tests/__data__/temp', { recursive: true }) fs.mkdirSync('tests/__data__/temp') + fs.copyFileSync('tests/__data__/input/test.db', 'tests/__data__/temp/test.db') }) it('can update database', () => {