hunk.code_window:     t.equal((err as PnpmError).code, 'ERR_PNPM_CONFIG_CONFLICT_VIRTUAL_STORE_DIR_WITH_GLOBAL')
       t.end()
     }
   })
   test('when using --global, link-workspace-packages, shared-workspace-shrinwrap and shrinkwrap-directory are false even if it is set to true in a .npmrc file', async (t) => {
     const tmp = tempy.directory()
     t.comment(`temp dir created: ${tmp}`)
     process.chdir(tmp)
  
hunk.labels: keep keep keep keep keep replace keep keep keep keep
hunk.after_edit: test('when using --global, link-workspace-packages, shared-workspace-shrinwrap and lockfile-directory are false even if it is set to true in a .npmrc file', async (t) => {
  
hunk.file_path: packages/config/test/index.ts
hunk.type: replace
file: import { Registries } from '@pnpm/types'
  
  export default (registries: Registries, packageName: string) => {
    const scope = getScope(packageName)
    return scope && registries[scope] || registries.default
  }
  
  function getScope (pkgName: string): string | null {
    if (pkgName[0] === '@') {
      return pkgName.substr(0, pkgName.indexOf('/'))
    }
    return null
  }
  