Skip to content

Commit d189bb0

Browse files
committed
Cleanup socket-npm.test.cjs
1 parent a93a17c commit d189bb0

1 file changed

Lines changed: 3 additions & 2 deletions

File tree

test/socket-npm.test.cjs

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -8,15 +8,16 @@ const { describe, it } = require('node:test')
88
const spawn = require('@npmcli/promise-spawn')
99

1010
const constants = require('../dist/constants.js')
11-
const { NPM, abortSignal } = constants
11+
12+
const { NODE_MODULES, NPM, abortSignal } = constants
1213

1314
const testPath = __dirname
1415
const npmFixturesPath = path.join(testPath, 'socket-npm-fixtures')
1516

1617
// These aliases are defined in package.json.
1718
for (const npmDir of ['npm8', 'npm10']) {
1819
const npmPath = path.join(npmFixturesPath, npmDir)
19-
const npmBinPath = path.join(npmPath, 'node_modules', '.bin')
20+
const npmBinPath = path.join(npmPath, NODE_MODULES, '.bin')
2021

2122
spawnSync(NPM, ['install', '--silent'], {
2223
cwd: npmPath,

0 commit comments

Comments
 (0)