diff --git a/package.json b/package.json index f2fee6660..dd7991dd2 100644 --- a/package.json +++ b/package.json @@ -113,6 +113,7 @@ "simple-git": "^2.28.0", "strip-bom": "^4.0.0", "strip-json-comments": "^3.1.1", + "tempy": "^1.0.0", "typedoc": "^0.20.24", "typescript": "4.1.5", "update-notifier": "^5.0.0", diff --git a/src/test/node.js b/src/test/node.js index 20d2f4b4d..43e5c61ab 100644 --- a/src/test/node.js +++ b/src/test/node.js @@ -2,6 +2,7 @@ const execa = require('execa') const path = require('path') +const tempy = require('tempy') const { hook } = require('../utils') const merge = require('merge-options') @@ -23,6 +24,7 @@ async function testNode (argv, execaOptions) { ? [ '--reporter', 'json', '--report-dir', '.nyc_output', + '--temp-directory', tempy.directory(), '--clean', 'mocha' ]