hunk.code_window: import PATH from 'path-name'
   import semver from 'semver'
   afterEach(async () => {
     // @ts-expect-error
     await global.finishWorkers?.()
   })
   test('install Node (and npm, npx) by exact version of Node.js', async () => {
     tempDir()
     const configDir = path.resolve('config')
     await env.handler({
  
hunk.labels: keep keep keep replace replace replace replace replace keep keep keep keep keep
hunk.file_path: env/plugin-commands-env/test/env.test.ts
hunk.type: replace
file: import { whichVersionIsPinned } from '@pnpm/which-version-is-pinned'
  
  test.each([
    ['^1.0.0', 'major'],
    ['~1.0.0', 'minor'],
    ['1.0.0', 'patch'],
    ['*', 'none'],
    ['workspace:^1.0.0', 'major'],
    ['npm:foo@1.0.0', 'patch'],
    ['npm:@foo/foo@1.0.0', 'patch'],
    ['npm:foo@^1.0.0', 'major'],
    ['npm:@foo/foo@^1.0.0', 'major'],
    ['npm:@pnpm.e2e/qar@100.0.0', 'patch'],
  ])('whichVersionIsPinned()', (spec, expectedResult) => {
    expect(whichVersionIsPinned(spec)).toEqual(expectedResult)
  })
  