hunk.code_window:   }
   })
   test('linkBins() would throw error if package has no bin field', async (t) => {
     const binTarget = tempy.directory()
     t.comment(`linking bins to ${binTarget}`)
     const warn = sinon.spy()
  
hunk.labels: keep keep keep replace keep keep keep
hunk.after_edit: test('linkBins() would gives warning if package has no bin field', async (t) => {
  
hunk.file_path: packages/link-bins/test/index.ts
hunk.type: replace
file: import fs = require('mz/fs')
  import path = require('path')
  
  export default async function realNodeModulesDir (prefix: string): Promise<string> {
    const dirName = path.join(prefix, 'node_modules')
    try {
      return await fs.realpath(dirName)
    } catch (err) {
      if (err['code'] === 'ENOENT') { // tslint:disable-line:no-string-literal
        return dirName
      }
      throw err
    }
  }
  