@@ -636,6 +636,8 @@ it(`should transparently use the preconfigured version when there is no local pr
636636
637637for ( const name of SupportedPackageManagerSet ) {
638638 it ( `should use the pinned version when local projects don't list any spec (${ name } )` , async ( ) => {
639+ process . env . pnpm_config_pm_on_fail = `ignore` ;
640+
639641 await xfs . mktempPromise ( async cwd => {
640642 await xfs . writeJsonPromise ( ppath . join ( cwd , `package.json` as Filename ) , {
641643 // empty package.json file
@@ -811,6 +813,7 @@ it(`should refuse to run a different package manager within a configured project
811813
812814 // Disable strict checking to workaround the UsageError.
813815 process . env . COREPACK_ENABLE_STRICT = `0` ;
816+ process . env . pnpm_config_pm_on_fail = `ignore` ;
814817
815818 await expect ( runCli ( cwd , [ `yarn` , `--version` ] ) ) . resolves . toMatchObject ( {
816819 stdout : `1.0.0\n` ,
@@ -832,6 +835,7 @@ it(`should always use fallback version when project spec env is disabled`, async
832835 packageManager : `yarn@1.0.0` ,
833836 } ) ;
834837 process . env . COREPACK_ENABLE_PROJECT_SPEC = `0` ;
838+ process . env . pnpm_config_pm_on_fail = `ignore` ;
835839
836840 await expect ( runCli ( cwd , [ `yarn` , `--version` ] ) ) . resolves . toMatchObject ( {
837841 stdout : `${ config . definitions . yarn . default . split ( `+` , 1 ) [ 0 ] } \n` ,
0 commit comments