Update create-database.test.js

This commit is contained in:
Aleksandr Statciuk 2022-02-05 03:03:43 +03:00
parent fcba9f55d5
commit d4ccef3719
1 changed files with 2 additions and 3 deletions

View File

@ -1,10 +1,9 @@
const fs = require('fs')
const fs = require('fs-extra')
const path = require('path')
const { execSync } = require('child_process')
beforeEach(() => {
fs.rmdirSync('tests/__data__/output', { recursive: true })
fs.mkdirSync('tests/__data__/output')
fs.emptyDirSync('tests/__data__/output')
const stdout = execSync(
'DB_FILEPATH=tests/__data__/output/channels.db node scripts/commands/create-database.js --input-dir=tests/__data__/input/channels --max-clusters=1',