Skip to content

Commit

Permalink
log the npm prefix
Browse files Browse the repository at this point in the history
  • Loading branch information
phated committed Aug 17, 2024
1 parent 4eb8b3c commit 3025226
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions test.js
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,8 @@ const path = require('path');
const assert = require('assert');
const prefix = require('./');

const { execSync } = require("child_process");s

describe('prefix', () => {
it('should resolve the path to the windows global prefix', () => {
if (process.platform === 'win32') {
Expand All @@ -21,9 +23,7 @@ describe('prefix', () => {
});

it('should resolve the path to the global prefix', () => {
console.log(prefix);
console.log(process.env.PATH);
console.log(process.env.PATHEXT);
console.log(execSync("npm prefix --global"));
assert(fs.existsSync(prefix));
});
});

0 comments on commit 3025226

Please sign in to comment.