From 86cfe2f3f88dd8927aa1c01b509e370cdb9d606f Mon Sep 17 00:00:00 2001 From: Ivan Goncharov Date: Fri, 22 Jan 2021 22:15:37 +0200 Subject: [PATCH] benchmark: fix temp dir creation --- benchmark/benchmark.js | 1 + 1 file changed, 1 insertion(+) diff --git a/benchmark/benchmark.js b/benchmark/benchmark.js index ad14e7f6b0..0f83a2efdc 100644 --- a/benchmark/benchmark.js +++ b/benchmark/benchmark.js @@ -31,6 +31,7 @@ function exec(command, options = {}) { // and returns path to its 'dist' directory. function prepareBenchmarkProjects(revisionList) { const tmpDir = path.join(os.tmpdir(), 'graphql-js-benchmark'); + fs.rmdirSync(tmpDir, { recursive: true, force: true }); fs.mkdirSync(tmpDir); const setupDir = path.join(tmpDir, 'setup');