diff --git a/test/parallel/test-npm-install.js b/test/parallel/test-npm-install.js index 186b2e2b16099c..34f48d50ccdb2b 100644 --- a/test/parallel/test-npm-install.js +++ b/test/parallel/test-npm-install.js @@ -7,6 +7,7 @@ const path = require('path'); const exec = require('child_process').exec; const assert = require('assert'); const fs = require('fs'); +const fixtures = require('../common/fixtures'); common.refreshTmpDir(); const npmSandbox = path.join(common.tmpDir, 'npm-sandbox'); @@ -26,7 +27,7 @@ const npmPath = path.join( const pkgContent = JSON.stringify({ dependencies: { - 'package-name': `${common.fixturesDir}/packages/main` + 'package-name': fixtures.path('packages/main') } });