hunk.code_window:   path: string,
     srcPath?: string,
     id: string,
     resolution: Resolution,
     abort(): Promise<void>,
   }
   export default async function fetch (
     spec: PackageSpec,
  
hunk.labels: keep keep keep keep replace keep keep keep keep
hunk.file_path: src/install/fetch.ts
hunk.type: replace
file: import {PnpmOptions} from '../../src'
  import path = require('path')
  
  export default function testDefaults (opts?: PnpmOptions): PnpmOptions  & {storePath: string} {
    return Object.assign({
      storePath: path.resolve('..', '.store'),
      localRegistry: path.resolve('..', '.registry'),
      registry: 'http://localhost:4873/',
    }, opts)
  }
  