We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent fc1df95 commit 34137b3Copy full SHA for 34137b3
1 file changed
test/bin/windows-shims.js
@@ -94,14 +94,12 @@ t.test('run shims', t => {
94
node_modules: {
95
npm: {
96
bin: {
97
- 'npm-prefix.js': readFileSync(join(BIN, 'npm-prefix.js')),
98
- 'npx-cli.js': `throw new Error('this should not be called')`,
99
- 'npm-cli.js': `
100
- const assert = require('assert')
+ 'npm-prefix.js': `
101
const { resolve } = require('path')
102
- assert.equal(process.argv.slice(2).join(' '), 'prefix -g')
103
console.log(resolve(__dirname, '../../../global-prefix'))
104
`,
+ 'npx-cli.js': `throw new Error('local npx should not be called')`,
+ 'npm-cli.js': `throw new Error('local npm should not be called')`,
105
},
106
107
0 commit comments