Debian Codegraph @

workspaces/arborist/test/fixtures/reify-cases/optional-metadep-postinstall-fail.js

raw
1 // generated from test/fixtures/optional-metadep-postinstall-fail
2 module.exports = t => {
3 const path = t.testdir({
4 "node_modules": {
5 "@isaacs": {
6 "testing-fail-postinstall": {
7 "package.json": JSON.stringify({
8 "_from": "@isaacs/testing-fail-postinstall@^1.0.0",
9 "_id": "@isaacs/[email protected]",
10 "_inBundle": false,
11 "_integrity": "sha512-dOoHClc0+gQ+GYiFLinkdH6G7mfSdjex+iiDhN26/h/WA+t7rax4Vg+TOB/VXjIuHawfiS5RllIxtPt7Fyqv+g==",
12 "_location": "/@isaacs/testing-fail-postinstall",
13 "_phantomChildren": {},
14 "_requested": {
15 "type": "range",
16 "registry": true,
17 "raw": "@isaacs/testing-fail-postinstall@^1.0.0",
18 "name": "@isaacs/testing-fail-postinstall",
19 "escapedName": "@isaacs%2ftesting-fail-postinstall",
20 "scope": "@isaacs",
21 "rawSpec": "^1.0.0",
22 "saveSpec": null,
23 "fetchSpec": "^1.0.0"
24 },
25 "_requiredBy": [
26 "/@isaacs/testing-prod-dep-postinstall-fail"
27 ],
28 "_resolved": "https://registry.npmjs.org/@isaacs/testing-fail-postinstall/-/testing-fail-postinstall-1.0.0.tgz",
29 "_shasum": "0ee96aa4b99c1640446ba5809d554a6e1f2a052a",
30 "_spec": "@isaacs/testing-fail-postinstall@^1.0.0",
31 "_where": "/Users/isaacs/dev/npm/arborist/test/fixtures/optional-metadep-postinstall-fail/node_modules/@isaacs/testing-prod-dep-postinstall-fail",
32 "bundleDependencies": false,
33 "deprecated": false,
34 "license": "ISC",
35 "name": "@isaacs/testing-fail-postinstall",
36 "scripts": {
37 "postinstall": "exit 1"
38 },
39 "version": "1.0.0"
40 })
41 },
42 "testing-prod-dep-postinstall-fail": {
43 "package.json": JSON.stringify({
44 "_from": "@isaacs/[email protected]",
45 "_id": "@isaacs/[email protected]",
46 "_inBundle": false,
47 "_integrity": "sha512-0OUhi2IXYma2CBXQt4tUknTp5D58qfYAfE5m/wOaeHmnAk7f0qwHoNiytPbtziyVEVYwWBWABBm7mW1McneyBw==",
48 "_location": "/@isaacs/testing-prod-dep-postinstall-fail",
49 "_phantomChildren": {},
50 "_requested": {
51 "type": "version",
52 "registry": true,
53 "raw": "@isaacs/[email protected]",
54 "name": "@isaacs/testing-prod-dep-postinstall-fail",
55 "escapedName": "@isaacs%2ftesting-prod-dep-postinstall-fail",
56 "scope": "@isaacs",
57 "rawSpec": "1.0.0",
58 "saveSpec": null,
59 "fetchSpec": "1.0.0"
60 },
61 "_requiredBy": [
62 "/"
63 ],
64 "_resolved": "https://registry.npmjs.org/@isaacs/testing-prod-dep-postinstall-fail/-/testing-prod-dep-postinstall-fail-1.0.0.tgz",
65 "_shasum": "ea11e9a51de8ef4b17f3651438c34f4e33bc363d",
66 "_spec": "@isaacs/[email protected]",
67 "_where": "/Users/isaacs/dev/npm/arborist/test/fixtures/optional-metadep-postinstall-fail",
68 "bundleDependencies": false,
69 "dependencies": {
70 "@isaacs/testing-fail-postinstall": "^1.0.0"
71 },
72 "deprecated": false,
73 "description": "a prod dependency that fails to install",
74 "license": "ISC",
75 "name": "@isaacs/testing-prod-dep-postinstall-fail",
76 "version": "1.0.0"
77 })
78 }
79 }
80 },
81 "package.json": JSON.stringify({
82 "name": "optional-metadep-postinstall-fail",
83 "version": "1.0.0",
84 "optionalDependencies": {
85 "@isaacs/testing-prod-dep-postinstall-fail": "*"
86 }
87 })
88 })
89 return path
90 }