mirror of
https://github.com/pnpm/pnpm.git
synced 2026-03-24 01:51:41 -04:00
test: fix linking test on Windows
This commit is contained in:
@@ -11,6 +11,7 @@ import {
|
||||
} from './utils'
|
||||
import thenify = require('thenify')
|
||||
import fs = require('mz/fs')
|
||||
import isWindows = require('is-windows')
|
||||
|
||||
test('linking multiple packages', async (t: tape.Test) => {
|
||||
const project = prepare(t)
|
||||
@@ -49,5 +50,6 @@ test('link global bin', async function (t: tape.Test) {
|
||||
|
||||
await execPnpm('link')
|
||||
|
||||
isExecutable(t, path.join(global, 'bin', 'package-with-bin'))
|
||||
const globalBin = isWindows() ? global : path.join(global, 'bin')
|
||||
isExecutable(t, path.join(globalBin, 'package-with-bin'))
|
||||
})
|
||||
|
||||
Reference in New Issue
Block a user