@@ -51,9 +51,9 @@ afterEach(request.__resetAuthedRequests);
51
51
test ( 'install should hoist nested bin scripts' , ( ) : Promise < void > => {
52
52
return runInstall ( { binLinks : true } , 'install-nested-bin' , async config => {
53
53
const binScripts = await fs . walk ( path . join ( config . cwd , 'node_modules' , '.bin' ) ) ;
54
- // need to double the amount as windows makes 2 entries for each dependency
55
- // so for below, there would be an entry for eslint and eslint.cmd on win32
56
- const amount = process . platform === 'win32' ? 20 : 10 ;
54
+ // need to triple the amount as windows makes 3 entries for each dependency
55
+ // 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 ;
57
57
expect ( binScripts ) . toHaveLength ( amount ) ;
58
58
59
59
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
178
178
test ( 'empty bin string does not create a link' , ( ) : Promise < void > => {
179
179
return runInstall ( { binLinks : true } , 'install-empty-bin' , async config => {
180
180
const binScripts = await fs . walk ( path . join ( config . cwd , 'node_modules' , '.bin' ) ) ;
181
- const linkCount = process . platform === 'win32' ? 2 : 1 ;
181
+ const linkCount = process . platform === 'win32' ? 3 : 1 ;
182
182
expect ( binScripts ) . toHaveLength ( linkCount ) ;
183
183
184
184
expect ( await linkAt ( config , 'node_modules' , '.bin' , 'depB' ) ) . toEqual ( '../depB/depb.js' ) ;
0 commit comments