diff --git a/test/common.js b/test/common.js index 17d83117908501..3813b07998cb6c 100644 --- a/test/common.js +++ b/test/common.js @@ -9,7 +9,7 @@ const stream = require('stream'); const util = require('util'); const testRoot = process.env.NODE_TEST_DIR ? - path.resolve(process.env.NODE_TEST_DIR) : __dirname; + fs.realpathSync(process.env.NODE_TEST_DIR) : __dirname; exports.testDir = __dirname; exports.fixturesDir = path.join(exports.testDir, 'fixtures');