node-gyp/test/common.js
Rod Vagg c506a6a150
test: configure proper devDir for invoking configure()
test/test-configure-python.js downloads a fresh set of headers to the
package directory each time. By setting to the default global cache dir
we get to re-use cached headers and skip the download step.

PR-URL: https://github.com/nodejs/node-gyp/pull/1796
Reviewed-By: Richard Lau <riclau@uk.ibm.com>
2019-11-18 13:30:35 +11:00

3 lines
112 B
JavaScript

const envPaths = require('env-paths')
module.exports.devDir = () => envPaths('node-gyp', { suffix: '' }).cache