From 3bce13f652e4043d940df8eec29f79eef24b6215 Mon Sep 17 00:00:00 2001 From: Ivan Goncharov Date: Fri, 22 Jan 2021 22:42:19 +0200 Subject: [PATCH] benchmark: fix temp dir creation (#2891) --- 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');