diff --git a/test/parallel/test-npm-install.js b/test/parallel/test-npm-install.js index 8c7443c21f82ee..4e718a78ddcbdd 100644 --- a/test/parallel/test-npm-install.js +++ b/test/parallel/test-npm-install.js @@ -5,6 +5,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'); @@ -24,7 +25,7 @@ const npmPath = path.join( const pkgContent = JSON.stringify({ dependencies: { - 'package-name': `${common.fixturesDir}/packages/main` + 'package-name': fixtures.path('packages/main') } });