hunk.code_window:     })
       .map(most.of)
     outputs.push(deprecationOutput$)
     outputs.push(miscOutput(most.merge(log$.link, log$.registry, log$.other), {cwd: opts.cwd}))
     const stats$ = opts.isRecursive
       ? log$.stats
  
hunk.labels: keep keep keep keep keep replace keep keep keep
hunk.after_edit:   outputs.push(
       miscOutput(
         most.merge(log$.link, log$.registry, log$.other),
         {
           cwd: opts.cwd,
           zoomOutCurrent: opts.isRecursive,
         },
       ),
     )
  
hunk.file_path: packages/default-reporter/src/reporterForClient.ts
hunk.type: replace
file: import loadJsonFile = require('load-json-file')
  import path = require('path')
  import exists = require('path-exists')
  import {storeAdd} from 'supi'
  import tape = require('tape')
  import promisifyTape from 'tape-promise'
  import {createTempFolder, testDefaults} from './utils'
  
  const test = promisifyTape(tape)
  
  test('add packages to the store', async (t: tape.Test) => {
    createTempFolder(t)
  
    const opts = await testDefaults()
    await storeAdd(['express@4.16.3'], opts)
  
    const pathToCheck = path.join(opts.store, 'localhost+4873', 'express', '4.16.3')
    t.ok(await exists(pathToCheck), `express@4.16.3 is in store (at ${pathToCheck})`)
  
    const storeIndex = await loadJsonFile(path.join(opts.store, 'store.json'))
    t.deepEqual(
      storeIndex,
      {
        'localhost+4873/express/4.16.3': [],
      },
      'package has been added to the store index',
    )
  })
  
  test('should fail if some packages can not be added', async (t: tape.Test) => {
    createTempFolder(t)
  
    let thrown = false;
    try {
      await storeAdd(['@pnpm/this-does-not-exist'], await testDefaults())
    } catch (e) {
      thrown = true;
      t.equal(e.code, 'ERR_PNPM_STORE_ADD_FAILURE', 'has thrown the correct error code')
      t.equal(e.message, 'Some packages have not been added correctly', 'has thrown the correct error')
    }
    t.ok(thrown, 'has thrown')
  })
  