hunk.code_window:   rawConfig: {},
   })
   afterEach(async () => {
     // @ts-expect-error
     await global.finishWorkers?.()
   })
   test('request package', async () => {
     const storeDir = tempy.directory()
     const cafs = createCafsStore(storeDir)
     const requestPackage = createPackageRequester({
       resolve,
  
hunk.labels: keep keep keep replace replace replace replace replace keep keep keep keep keep
hunk.file_path: pkg-manager/package-requester/test/index.ts
hunk.type: replace
file: import { pkgSnapshotToResolution } from '@pnpm/lockfile-utils'
  
  test('pkgSnapshotToResolution()', () => {
    expect(pkgSnapshotToResolution('/foo/1.0.0', {
      resolution: {
        integrity: 'AAAA',
      },
    }, { default: 'https://registry.npmjs.org/' })).toEqual({
      integrity: 'AAAA',
      registry: 'https://registry.npmjs.org/',
      tarball: 'https://registry.npmjs.org/foo/-/foo-1.0.0.tgz',
    })
  
    expect(pkgSnapshotToResolution('/@mycompany/mypackage/2.0.0', {
      resolution: {
        integrity: 'AAAA',
        tarball: '@mycompany/mypackage/-/@mycompany/mypackage-2.0.0.tgz',
      },
    }, { default: 'https://registry.npmjs.org/', '@mycompany': 'https://mycompany.jfrog.io/mycompany/api/npm/npm-local/' })).toEqual({
      integrity: 'AAAA',
      registry: 'https://mycompany.jfrog.io/mycompany/api/npm/npm-local/',
      tarball: 'https://mycompany.jfrog.io/mycompany/api/npm/npm-local/@mycompany/mypackage/-/@mycompany/mypackage-2.0.0.tgz',
    })
  
    expect(pkgSnapshotToResolution('/@mycompany/mypackage/2.0.0', {
      resolution: {
        integrity: 'AAAA',
        tarball: '@mycompany/mypackage/-/@mycompany/mypackage-2.0.0.tgz',
      },
    }, { default: 'https://registry.npmjs.org/', '@mycompany': 'https://mycompany.jfrog.io/mycompany/api/npm/npm-local' })).toEqual({
      integrity: 'AAAA',
      registry: 'https://mycompany.jfrog.io/mycompany/api/npm/npm-local',
      tarball: 'https://mycompany.jfrog.io/mycompany/api/npm/npm-local/@mycompany/mypackage/-/@mycompany/mypackage-2.0.0.tgz',
    })
  })
  