Skip to content

Commit

Permalink
benchmark: fix temp dir creation (#2891)
Browse files Browse the repository at this point in the history
  • Loading branch information
IvanGoncharov committed Jan 22, 2021
1 parent 4c56041 commit 3bce13f
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions benchmark/benchmark.js
Expand Up @@ -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');
Expand Down

0 comments on commit 3bce13f

Please sign in to comment.