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')