Skip to content

Commit 8359256

Browse files
author
Maël Nison
committed
Merge remote-tracking branch 'upstream/master' into 1.15-stable
2 parents 45d3e05 + 675ec42 commit 8359256

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

__tests__/commands/install/bin-links.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -53,7 +53,7 @@ test('install should hoist nested bin scripts', (): Promise<void> => {
5353
const binScripts = await fs.walk(path.join(config.cwd, 'node_modules', '.bin'));
5454
// need to triple the amount as windows makes 3 entries for each dependency
5555
// so for below, there would be an entry for eslint, eslint.cmd and eslint.ps1 on win32
56-
const amount = process.platform === 'win32' ? 30 : 10;
56+
const amount = process.platform === 'win32' ? 20 : 10;
5757
expect(binScripts).toHaveLength(amount);
5858

5959
expect(await linkAt(config, 'node_modules', '.bin', 'standard')).toEqual('../standard/bin/cmd.js');
@@ -178,7 +178,7 @@ test('can use link protocol to install a package that would not be found via nod
178178
test('empty bin string does not create a link', (): Promise<void> => {
179179
return runInstall({binLinks: true}, 'install-empty-bin', async config => {
180180
const binScripts = await fs.walk(path.join(config.cwd, 'node_modules', '.bin'));
181-
const linkCount = process.platform === 'win32' ? 3 : 1;
181+
const linkCount = process.platform === 'win32' ? 2 : 1;
182182
expect(binScripts).toHaveLength(linkCount);
183183

184184
expect(await linkAt(config, 'node_modules', '.bin', 'depB')).toEqual('../depB/depb.js');

0 commit comments

Comments
 (0)