From 0de337039e7a41553d742f856857bf6f22576d4d Mon Sep 17 00:00:00 2001 From: Aleksandr Statciuk Date: Mon, 7 Feb 2022 08:41:52 +0300 Subject: [PATCH] Update create-matrix.test.js --- tests/commands/create-matrix.test.js | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/tests/commands/create-matrix.test.js b/tests/commands/create-matrix.test.js index 07f0106f70..736e633a89 100644 --- a/tests/commands/create-matrix.test.js +++ b/tests/commands/create-matrix.test.js @@ -3,13 +3,13 @@ const path = require('path') const { execSync } = require('child_process') beforeEach(() => { - fs.emptyDirSync('tests/__data__/temp') + fs.emptyDirSync('tests/__data__/output') - fs.copyFileSync('tests/__data__/input/database/streams.db', 'tests/__data__/temp/streams.db') + fs.copyFileSync('tests/__data__/input/database/streams.db', 'tests/__data__/output/streams.db') }) it('can create valid matrix', () => { - const result = execSync('DB_DIR=tests/__data__/temp node scripts/commands/create-matrix.js', { + const result = execSync('DB_DIR=tests/__data__/output node scripts/commands/create-matrix.js', { encoding: 'utf8' }) expect(result).toBe('::set-output name=matrix::{"cluster_id":[1,3]}\n')