// generated from test/fixtures/prune-lockfile-optional-peer
module.exports = t => {
  const path = t.testdir({
  "package-lock.json": JSON.stringify({
    "name": "prune-lockfile-optional-peer",
    "version": "1.0.0",
    "lockfileVersion": 3,
    "requires": true,
    "packages": {
      "": {
        "name": "prune-lockfile-optional-peer",
        "version": "1.0.0",
        "dependencies": {
          "dedent": "^1.6.0"
        }
      },
      "node_modules/@babel/code-frame": {
        "version": "7.27.1",
        "resolved": "https://registry.npmjs.org/@babel/code-frame/-/code-frame-7.27.1.tgz",
        "integrity": "sha512-cjQ7ZlQ0Mv3b47hABuTevyTuYN4i+loJKGeV9flcCgIK37cCXRh+L1bd3iBHlynerhQ7BhCkn2BPbQUL+rGqFg==",
        "license": "MIT",
        "optional": true,
        "peer": true,
        "dependencies": {
          "@babel/helper-validator-identifier": "^7.27.1",
          "js-tokens": "^4.0.0",
          "picocolors": "^1.1.1"
        },
        "engines": {
          "node": ">=6.9.0"
        }
      },
      "node_modules/@babel/helper-validator-identifier": {
        "version": "7.27.1",
        "resolved": "https://registry.npmjs.org/@babel/helper-validator-identifier/-/helper-validator-identifier-7.27.1.tgz",
        "integrity": "sha512-D2hP9eA+Sqx1kBZgzxZh0y1trbuU+JoDkiEwqhQ36nodYqJwyEIhPSdMNd7lOm/4io72luTPWH20Yda0xOuUow==",
        "license": "MIT",
        "optional": true,
        "peer": true,
        "engines": {
          "node": ">=6.9.0"
        }
      },
      "node_modules/@babel/runtime": {
        "version": "7.27.6",
        "resolved": "https://registry.npmjs.org/@babel/runtime/-/runtime-7.27.6.tgz",
        "integrity": "sha512-vbavdySgbTTrmFE+EsiqUTzlOr5bzlnJtUv9PynGCAKvfQqjIXbvFdumPM/GxMDfyuGMJaJAU6TO4zc1Jf1i8Q==",
        "license": "MIT",
        "optional": true,
        "peer": true,
        "engines": {
          "node": ">=6.9.0"
        }
      },
      "node_modules/@types/parse-json": {
        "version": "4.0.2",
        "resolved": "https://registry.npmjs.org/@types/parse-json/-/parse-json-4.0.2.tgz",
        "integrity": "sha512-dISoDXWWQwUquiKsyZ4Ng+HX2KsPL7LyHKHQwgGFEA3IaKac4Obd+h2a/a6waisAoepJlBcx9paWqjA8/HVjCw==",
        "license": "MIT",
        "optional": true,
        "peer": true
      },
      "node_modules/babel-plugin-macros": {
        "version": "3.1.0",
        "resolved": "https://registry.npmjs.org/babel-plugin-macros/-/babel-plugin-macros-3.1.0.tgz",
        "integrity": "sha512-Cg7TFGpIr01vOQNODXOOaGz2NpCU5gl8x1qJFbb6hbZxR7XrcE2vtbAsTAbJ7/xwJtUuJEw8K8Zr/AE0LHlesg==",
        "license": "MIT",
        "optional": true,
        "peer": true,
        "dependencies": {
          "@babel/runtime": "^7.12.5",
          "cosmiconfig": "^7.0.0",
          "resolve": "^1.19.0"
        },
        "engines": {
          "node": ">=10",
          "npm": ">=6"
        }
      },
      "node_modules/callsites": {
        "version": "3.1.0",
        "resolved": "https://registry.npmjs.org/callsites/-/callsites-3.1.0.tgz",
        "integrity": "sha512-P8BjAsXvZS+VIDUI11hHCQEv74YT67YUi5JJFNWIqL235sBmjX4+qx9Muvls5ivyNENctx46xQLQ3aTuE7ssaQ==",
        "license": "MIT",
        "optional": true,
        "peer": true,
        "engines": {
          "node": ">=6"
        }
      },
      "node_modules/cosmiconfig": {
        "version": "7.1.0",
        "resolved": "https://registry.npmjs.org/cosmiconfig/-/cosmiconfig-7.1.0.tgz",
        "integrity": "sha512-AdmX6xUzdNASswsFtmwSt7Vj8po9IuqXm0UXz7QKPuEUmPB4XyjGfaAr2PSuELMwkRMVH1EpIkX5bTZGRB3eCA==",
        "license": "MIT",
        "optional": true,
        "peer": true,
        "dependencies": {
          "@types/parse-json": "^4.0.0",
          "import-fresh": "^3.2.1",
          "parse-json": "^5.0.0",
          "path-type": "^4.0.0",
          "yaml": "^1.10.0"
        },
        "engines": {
          "node": ">=10"
        }
      },
      "node_modules/dedent": {
        "version": "1.6.0",
        "resolved": "https://registry.npmjs.org/dedent/-/dedent-1.6.0.tgz",
        "integrity": "sha512-F1Z+5UCFpmQUzJa11agbyPVMbpgT/qA3/SKyJ1jyBgm7dUcUEa8v9JwDkerSQXfakBwFljIxhOJqGkjUwZ9FSA==",
        "license": "MIT",
        "peerDependencies": {
          "babel-plugin-macros": "^3.1.0"
        },
        "peerDependenciesMeta": {
          "babel-plugin-macros": {
            "optional": true
          }
        }
      },
      "node_modules/error-ex": {
        "version": "1.3.2",
        "resolved": "https://registry.npmjs.org/error-ex/-/error-ex-1.3.2.tgz",
        "integrity": "sha512-7dFHNmqeFSEt2ZBsCriorKnn3Z2pj+fd9kmI6QoWw4//DL+icEBfc0U7qJCisqrTsKTjw4fNFy2pW9OqStD84g==",
        "license": "MIT",
        "optional": true,
        "peer": true,
        "dependencies": {
          "is-arrayish": "^0.2.1"
        }
      },
      "node_modules/function-bind": {
        "version": "1.1.2",
        "resolved": "https://registry.npmjs.org/function-bind/-/function-bind-1.1.2.tgz",
        "integrity": "sha512-7XHNxH7qX9xG5mIwxkhumTox/MIRNcOgDrxWsMt2pAr23WHp6MrRlN7FBSFpCpr+oVO0F744iUgR82nJMfG2SA==",
        "license": "MIT",
        "optional": true,
        "peer": true,
        "funding": {
          "url": "https://github.com/sponsors/ljharb"
        }
      },
      "node_modules/hasown": {
        "version": "2.0.2",
        "resolved": "https://registry.npmjs.org/hasown/-/hasown-2.0.2.tgz",
        "integrity": "sha512-0hJU9SCPvmMzIBdZFqNPXWa6dqh7WdH0cII9y+CyS8rG3nL48Bclra9HmKhVVUHyPWNH5Y7xDwAB7bfgSjkUMQ==",
        "license": "MIT",
        "optional": true,
        "peer": true,
        "dependencies": {
          "function-bind": "^1.1.2"
        },
        "engines": {
          "node": ">= 0.4"
        }
      },
      "node_modules/import-fresh": {
        "version": "3.3.1",
        "resolved": "https://registry.npmjs.org/import-fresh/-/import-fresh-3.3.1.tgz",
        "integrity": "sha512-TR3KfrTZTYLPB6jUjfx6MF9WcWrHL9su5TObK4ZkYgBdWKPOFoSoQIdEuTuR82pmtxH2spWG9h6etwfr1pLBqQ==",
        "license": "MIT",
        "optional": true,
        "peer": true,
        "dependencies": {
          "parent-module": "^1.0.0",
          "resolve-from": "^4.0.0"
        },
        "engines": {
          "node": ">=6"
        },
        "funding": {
          "url": "https://github.com/sponsors/sindresorhus"
        }
      },
      "node_modules/is-arrayish": {
        "version": "0.2.1",
        "resolved": "https://registry.npmjs.org/is-arrayish/-/is-arrayish-0.2.1.tgz",
        "integrity": "sha512-zz06S8t0ozoDXMG+ube26zeCTNXcKIPJZJi8hBrF4idCLms4CG9QtK7qBl1boi5ODzFpjswb5JPmHCbMpjaYzg==",
        "license": "MIT",
        "optional": true,
        "peer": true
      },
      "node_modules/is-core-module": {
        "version": "2.16.1",
        "resolved": "https://registry.npmjs.org/is-core-module/-/is-core-module-2.16.1.tgz",
        "integrity": "sha512-UfoeMA6fIJ8wTYFEUjelnaGI67v6+N7qXJEvQuIGa99l4xsCruSYOVSQ0uPANn4dAzm8lkYPaKLrrijLq7x23w==",
        "license": "MIT",
        "optional": true,
        "peer": true,
        "dependencies": {
          "hasown": "^2.0.2"
        },
        "engines": {
          "node": ">= 0.4"
        },
        "funding": {
          "url": "https://github.com/sponsors/ljharb"
        }
      },
      "node_modules/js-tokens": {
        "version": "4.0.0",
        "resolved": "https://registry.npmjs.org/js-tokens/-/js-tokens-4.0.0.tgz",
        "integrity": "sha512-RdJUflcE3cUzKiMqQgsCu06FPu9UdIJO0beYbPhHN4k6apgJtifcoCtT9bcxOpYBtpD2kCM6Sbzg4CausW/PKQ==",
        "license": "MIT",
        "optional": true,
        "peer": true
      },
      "node_modules/json-parse-even-better-errors": {
        "version": "2.3.1",
        "resolved": "https://registry.npmjs.org/json-parse-even-better-errors/-/json-parse-even-better-errors-2.3.1.tgz",
        "integrity": "sha512-xyFwyhro/JEof6Ghe2iz2NcXoj2sloNsWr/XsERDK/oiPCfaNhl5ONfp+jQdAZRQQ0IJWNzH9zIZF7li91kh2w==",
        "license": "MIT",
        "optional": true,
        "peer": true
      },
      "node_modules/lines-and-columns": {
        "version": "1.2.4",
        "resolved": "https://registry.npmjs.org/lines-and-columns/-/lines-and-columns-1.2.4.tgz",
        "integrity": "sha512-7ylylesZQ/PV29jhEDl3Ufjo6ZX7gCqJr5F7PKrqc93v7fzSymt1BpwEU8nAUXs8qzzvqhbjhK5QZg6Mt/HkBg==",
        "license": "MIT",
        "optional": true,
        "peer": true
      },
      "node_modules/parent-module": {
        "version": "1.0.1",
        "resolved": "https://registry.npmjs.org/parent-module/-/parent-module-1.0.1.tgz",
        "integrity": "sha512-GQ2EWRpQV8/o+Aw8YqtfZZPfNRWZYkbidE9k5rpl/hC3vtHHBfGm2Ifi6qWV+coDGkrUKZAxE3Lot5kcsRlh+g==",
        "license": "MIT",
        "optional": true,
        "peer": true,
        "dependencies": {
          "callsites": "^3.0.0"
        },
        "engines": {
          "node": ">=6"
        }
      },
      "node_modules/parse-json": {
        "version": "5.2.0",
        "resolved": "https://registry.npmjs.org/parse-json/-/parse-json-5.2.0.tgz",
        "integrity": "sha512-ayCKvm/phCGxOkYRSCM82iDwct8/EonSEgCSxWxD7ve6jHggsFl4fZVQBPRNgQoKiuV/odhFrGzQXZwbifC8Rg==",
        "license": "MIT",
        "optional": true,
        "peer": true,
        "dependencies": {
          "@babel/code-frame": "^7.0.0",
          "error-ex": "^1.3.1",
          "json-parse-even-better-errors": "^2.3.0",
          "lines-and-columns": "^1.1.6"
        },
        "engines": {
          "node": ">=8"
        },
        "funding": {
          "url": "https://github.com/sponsors/sindresorhus"
        }
      },
      "node_modules/path-parse": {
        "version": "1.0.7",
        "resolved": "https://registry.npmjs.org/path-parse/-/path-parse-1.0.7.tgz",
        "integrity": "sha512-LDJzPVEEEPR+y48z93A0Ed0yXb8pAByGWo/k5YYdYgpY2/2EsOsksJrq7lOHxryrVOn1ejG6oAp8ahvOIQD8sw==",
        "license": "MIT",
        "optional": true,
        "peer": true
      },
      "node_modules/path-type": {
        "version": "4.0.0",
        "resolved": "https://registry.npmjs.org/path-type/-/path-type-4.0.0.tgz",
        "integrity": "sha512-gDKb8aZMDeD/tZWs9P6+q0J9Mwkdl6xMV8TjnGP3qJVJ06bdMgkbBlLU8IdfOsIsFz2BW1rNVT3XuNEl8zPAvw==",
        "license": "MIT",
        "optional": true,
        "peer": true,
        "engines": {
          "node": ">=8"
        }
      },
      "node_modules/picocolors": {
        "version": "1.1.1",
        "resolved": "https://registry.npmjs.org/picocolors/-/picocolors-1.1.1.tgz",
        "integrity": "sha512-xceH2snhtb5M9liqDsmEw56le376mTZkEX/jEb/RxNFyegNul7eNslCXP9FDj/Lcu0X8KEyMceP2ntpaHrDEVA==",
        "license": "ISC",
        "optional": true,
        "peer": true
      },
      "node_modules/resolve": {
        "version": "1.22.10",
        "resolved": "https://registry.npmjs.org/resolve/-/resolve-1.22.10.tgz",
        "integrity": "sha512-NPRy+/ncIMeDlTAsuqwKIiferiawhefFJtkNSW0qZJEqMEb+qBt/77B/jGeeek+F0uOeN05CDa6HXbbIgtVX4w==",
        "license": "MIT",
        "optional": true,
        "peer": true,
        "dependencies": {
          "is-core-module": "^2.16.0",
          "path-parse": "^1.0.7",
          "supports-preserve-symlinks-flag": "^1.0.0"
        },
        "bin": {
          "resolve": "bin/resolve"
        },
        "engines": {
          "node": ">= 0.4"
        },
        "funding": {
          "url": "https://github.com/sponsors/ljharb"
        }
      },
      "node_modules/resolve-from": {
        "version": "4.0.0",
        "resolved": "https://registry.npmjs.org/resolve-from/-/resolve-from-4.0.0.tgz",
        "integrity": "sha512-pb/MYmXstAkysRFx8piNI1tGFNQIFA3vkE3Gq4EuA1dF6gHp/+vgZqsCGJapvy8N3Q+4o7FwvquPJcnZ7RYy4g==",
        "license": "MIT",
        "optional": true,
        "peer": true,
        "engines": {
          "node": ">=4"
        }
      },
      "node_modules/supports-preserve-symlinks-flag": {
        "version": "1.0.0",
        "resolved": "https://registry.npmjs.org/supports-preserve-symlinks-flag/-/supports-preserve-symlinks-flag-1.0.0.tgz",
        "integrity": "sha512-ot0WnXS9fgdkgIcePe6RHNk1WA8+muPa6cSjeR3V8K27q9BB1rTE3R1p7Hv0z1ZyAc8s6Vvv8DIyWf681MAt0w==",
        "license": "MIT",
        "optional": true,
        "peer": true,
        "engines": {
          "node": ">= 0.4"
        },
        "funding": {
          "url": "https://github.com/sponsors/ljharb"
        }
      },
      "node_modules/yaml": {
        "version": "1.10.2",
        "resolved": "https://registry.npmjs.org/yaml/-/yaml-1.10.2.tgz",
        "integrity": "sha512-r3vXyErRCYJ7wg28yvBY5VSoAF8ZvlcW9/BwUzEtUsjvX/DKs24dIkuwjtuprwJJHsbyUbLApepYTR1BN4uHrg==",
        "license": "ISC",
        "optional": true,
        "peer": true,
        "engines": {
          "node": ">= 6"
        }
      }
    }
  }),
  "package.json": JSON.stringify({
    "name": "prune-lockfile-optional-peer",
    "version": "1.0.0",
    "dependencies": {
      "dedent": "^1.6.0"
    }
  })
  })
  return path
}
