hunk.code_window: import { REGISTRY_MOCK_PORT } from '@pnpm/registry-mock'
   const STORE_VERSION = 'v3'
   afterEach(async () => {
     // @ts-expect-error
     await global.finishWorkers?.()
   })
   test('pnpm store add express@4.16.3', async () => {
     tempDir()
     const cacheDir = path.resolve('cache')
     const storeDir = path.resolve('store')
  
hunk.labels: keep keep keep keep replace replace replace replace replace keep keep keep keep keep
hunk.file_path: store/plugin-commands-store/test/storeAdd.ts
hunk.type: replace
file: import { optionTypesToCompletions } from '../src/optionTypesToCompletions'
  
  test('optionTypesToCompletions()', () => {
    expect(
      optionTypesToCompletions({
        bar: String,
        foo: Boolean,
      })
    ).toStrictEqual([
      {
        name: '--bar',
      },
      {
        name: '--foo',
      },
      {
        name: '--no-foo',
      },
    ])
  })
  