|
| 1 | +/* IMPORTANT |
| 2 | + * This snapshot file is auto-generated, but designed for humans. |
| 3 | + * It should be checked into source control and tracked carefully. |
| 4 | + * Re-generate by setting TAP_SNAPSHOT=1 and running tests. |
| 5 | + * Make sure to inspect the output below. Do not ignore changes! |
| 6 | + */ |
| 7 | +'use strict' |
| 8 | +exports[`test/normalize.js TAP @npmcli/package-json - with changes clean up bundleDependencies change name if bundleDependencies is not present > must match snapshot 1`] = ` |
| 9 | +Array [ |
| 10 | + "Deleted incorrect \\"bundledDependencies\\"", |
| 11 | + "removed invalid \\"scripts\\"", |
| 12 | +] |
| 13 | +` |
| 14 | + |
| 15 | +exports[`test/normalize.js TAP @npmcli/package-json - with changes clean up bundleDependencies dont array-ify if its an array already > must match snapshot 1`] = ` |
| 16 | +Array [ |
| 17 | + "Deleted incorrect \\"bundledDependencies\\"", |
| 18 | + "removed invalid \\"scripts\\"", |
| 19 | +] |
| 20 | +` |
| 21 | + |
| 22 | +exports[`test/normalize.js TAP @npmcli/package-json - with changes clean up bundleDependencies handle bundleDependencies object > must match snapshot 1`] = ` |
| 23 | +Array [ |
| 24 | + "Deleted incorrect \\"bundledDependencies\\"", |
| 25 | + "\\"bundleDependencies\\" was changed from an object to an array", |
| 26 | + "removed invalid \\"scripts\\"", |
| 27 | +] |
| 28 | +` |
| 29 | + |
| 30 | +exports[`test/normalize.js TAP @npmcli/package-json - with changes clean up bundleDependencies handle bundleDependencies: false > must match snapshot 1`] = ` |
| 31 | +Array [ |
| 32 | + "Deleted incorrect \\"bundledDependencies\\"", |
| 33 | + "\\"bundleDepdencies\\" was changed from \\"false\\" to \\"[]\\"", |
| 34 | + "removed invalid \\"scripts\\"", |
| 35 | +] |
| 36 | +` |
| 37 | + |
| 38 | +exports[`test/normalize.js TAP @npmcli/package-json - with changes clean up bundleDependencies handle bundleDependencies: true > must match snapshot 1`] = ` |
| 39 | +Array [ |
| 40 | + "Deleted incorrect \\"bundledDependencies\\"", |
| 41 | + "\\"bundleDepdencies\\" was auto-populated from \\"dependencies\\"", |
| 42 | + "removed invalid \\"scripts\\"", |
| 43 | +] |
| 44 | +` |
| 45 | + |
| 46 | +exports[`test/normalize.js TAP @npmcli/package-json - with changes clean up bundleDependencies handle bundleDependencies: true with no deps > must match snapshot 1`] = ` |
| 47 | +Array [ |
| 48 | + "Deleted incorrect \\"bundledDependencies\\"", |
| 49 | + "\\"bundleDepdencies\\" was auto-populated from \\"dependencies\\"", |
| 50 | + "removed invalid \\"scripts\\"", |
| 51 | +] |
| 52 | +` |
| 53 | + |
| 54 | +exports[`test/normalize.js TAP @npmcli/package-json - with changes clean up bundleDependencies handle bundledDependencies: true > must match snapshot 1`] = ` |
| 55 | +Array [ |
| 56 | + "Deleted incorrect \\"bundledDependencies\\"", |
| 57 | + "\\"bundleDepdencies\\" was auto-populated from \\"dependencies\\"", |
| 58 | + "removed invalid \\"scripts\\"", |
| 59 | +] |
| 60 | +` |
| 61 | + |
| 62 | +exports[`test/normalize.js TAP @npmcli/package-json - with changes clean up scripts delete non-object scripts > must match snapshot 1`] = ` |
| 63 | +Array [ |
| 64 | + "Deleted incorrect \\"bundledDependencies\\"", |
| 65 | + "\\"bundleDependencies\\" was removed", |
| 66 | + "removed invalid \\"scripts\\"", |
| 67 | +] |
| 68 | +` |
| 69 | + |
| 70 | +exports[`test/normalize.js TAP @npmcli/package-json - with changes clean up scripts delete non-string script targets > must match snapshot 1`] = ` |
| 71 | +Array [ |
| 72 | + "Deleted incorrect \\"bundledDependencies\\"", |
| 73 | + "\\"bundleDependencies\\" was removed", |
| 74 | + "invalid scripts entry \\"bar\\" was removed", |
| 75 | + "invalid scripts entry \\"baz\\" was removed", |
| 76 | +] |
| 77 | +` |
| 78 | + |
| 79 | +exports[`test/normalize.js TAP @npmcli/package-json - with changes cleanup bins delete string bin when no name > must match snapshot 1`] = ` |
| 80 | +Array [ |
| 81 | + "Deleted incorrect \\"bundledDependencies\\"", |
| 82 | + "\\"bundleDependencies\\" was removed", |
| 83 | + "removed invalid \\"scripts\\"", |
| 84 | +] |
| 85 | +` |
| 86 | + |
| 87 | +exports[`test/normalize.js TAP @npmcli/package-json - with changes cleanup bins handle string when a name is set > must match snapshot 1`] = ` |
| 88 | +Array [ |
| 89 | + "Deleted incorrect \\"bundledDependencies\\"", |
| 90 | + "\\"bundleDependencies\\" was removed", |
| 91 | + "removed invalid \\"scripts\\"", |
| 92 | +] |
| 93 | +` |
| 94 | + |
| 95 | +exports[`test/normalize.js TAP @npmcli/package-json - with changes cleanup bins remove non-object bin > must match snapshot 1`] = ` |
| 96 | +Array [ |
| 97 | + "Deleted incorrect \\"bundledDependencies\\"", |
| 98 | + "\\"bundleDependencies\\" was removed", |
| 99 | + "removed invalid \\"scripts\\"", |
| 100 | +] |
| 101 | +` |
| 102 | + |
| 103 | +exports[`test/normalize.js TAP @npmcli/package-json - with changes cleanup bins remove non-string bin values > must match snapshot 1`] = ` |
| 104 | +Array [ |
| 105 | + "Deleted incorrect \\"bundledDependencies\\"", |
| 106 | + "\\"bundleDependencies\\" was removed", |
| 107 | + "removed invalid \\"scripts\\"", |
| 108 | +] |
| 109 | +` |
| 110 | + |
| 111 | +exports[`test/normalize.js TAP @npmcli/package-json - with changes convert funding string to object > must match snapshot 1`] = ` |
| 112 | +Array [ |
| 113 | + "Deleted incorrect \\"bundledDependencies\\"", |
| 114 | + "\\"bundleDependencies\\" was removed", |
| 115 | + "removed invalid \\"scripts\\"", |
| 116 | + "\\"funding\\" was changed to an object with a url attribute", |
| 117 | +] |
| 118 | +` |
| 119 | + |
| 120 | +exports[`test/normalize.js TAP @npmcli/package-json - with changes dedupe optional deps out of regular deps choose optional deps in conflict, leaving populated dependencies > must match snapshot 1`] = ` |
| 121 | +Array [ |
| 122 | + "Deleted incorrect \\"bundledDependencies\\"", |
| 123 | + "\\"bundleDependencies\\" was removed", |
| 124 | + "optionalDependencies entry \\"whowins\\" was removed", |
| 125 | + "removed invalid \\"scripts\\"", |
| 126 | +] |
| 127 | +` |
| 128 | + |
| 129 | +exports[`test/normalize.js TAP @npmcli/package-json - with changes dedupe optional deps out of regular deps choose optional deps in conflict, removing empty dependencies > must match snapshot 1`] = ` |
| 130 | +Array [ |
| 131 | + "Deleted incorrect \\"bundledDependencies\\"", |
| 132 | + "\\"bundleDependencies\\" was removed", |
| 133 | + "optionalDependencies entry \\"whowins\\" was removed", |
| 134 | + "empty \\"optionalDependencies\\" was removed", |
| 135 | + "removed invalid \\"scripts\\"", |
| 136 | +] |
| 137 | +` |
| 138 | + |
| 139 | +exports[`test/normalize.js TAP @npmcli/package-json - with changes dedupe optional deps out of regular deps do not create regular deps if only optional specified > must match snapshot 1`] = ` |
| 140 | +Array [ |
| 141 | + "Deleted incorrect \\"bundledDependencies\\"", |
| 142 | + "\\"bundleDependencies\\" was removed", |
| 143 | + "removed invalid \\"scripts\\"", |
| 144 | +] |
| 145 | +` |
| 146 | + |
| 147 | +exports[`test/normalize.js TAP @npmcli/package-json - with changes normalize bin > must match snapshot 1`] = ` |
| 148 | +Array [ |
| 149 | + "Deleted incorrect \\"bundledDependencies\\"", |
| 150 | + "\\"bundleDependencies\\" was removed", |
| 151 | + "removed invalid \\"scripts\\"", |
| 152 | +] |
| 153 | +` |
| 154 | + |
| 155 | +exports[`test/normalize.js TAP @npmcli/package-json - with changes set _id if name and version set > must match snapshot 1`] = ` |
| 156 | +Array [ |
| 157 | + "\\"_id\\" was set to [email protected]", |
| 158 | + "Deleted incorrect \\"bundledDependencies\\"", |
| 159 | + "\\"bundleDependencies\\" was removed", |
| 160 | + "removed invalid \\"scripts\\"", |
| 161 | +] |
| 162 | +` |
| 163 | + |
| 164 | +exports[`test/normalize.js TAP @npmcli/package-json - with changes skipping steps > must match snapshot 1`] = ` |
| 165 | +Array [] |
| 166 | +` |
| 167 | + |
| 168 | +exports[`test/normalize.js TAP @npmcli/package-json - with changes strip _fields > must match snapshot 1`] = ` |
| 169 | +Array [ |
| 170 | + "\\"_lodash\\" was removed", |
| 171 | + "\\"_id\\" was set to [email protected]", |
| 172 | + "Deleted incorrect \\"bundledDependencies\\"", |
| 173 | + "\\"bundleDependencies\\" was removed", |
| 174 | + "removed invalid \\"scripts\\"", |
| 175 | +] |
| 176 | +` |
0 commit comments