Skip to content

Commit

Permalink
[Tests] update fixtures
Browse files Browse the repository at this point in the history
I added engines declarations to a bunch of my packages, and npm switched from socks to ip-address
  • Loading branch information
ljharb committed Feb 19, 2024
1 parent ef62c4f commit 603dc39
Show file tree
Hide file tree
Showing 8 changed files with 256 additions and 4 deletions.
48 changes: 48 additions & 0 deletions test/fixtures/graph-engines-only/ideal-dev-entries
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,12 @@
"node": ">=4"
}
],
[
"array-buffer-byte-length",
{
"node": ">= 0.4"
}
],
[
"arraybuffer.prototype.slice",
{
Expand All @@ -29,6 +35,12 @@
"node": ">= 0.4"
}
],
[
"call-bind",
{
"node": ">= 0.4"
}
],
[
"camelcase",
{
Expand Down Expand Up @@ -83,6 +95,18 @@
"node": ">= 0.4"
}
],
[
"es-define-property",
{
"node": ">= 0.4"
}
],
[
"es-errors",
{
"node": ">= 0.4"
}
],
[
"es-set-tostringtag",
{
Expand Down Expand Up @@ -119,6 +143,12 @@
"node": ">= 0.4"
}
],
[
"get-intrinsic",
{
"node": ">= 0.4"
}
],
[
"get-stream",
{
Expand Down Expand Up @@ -179,6 +209,12 @@
"node": ">=0.10.0"
}
],
[
"is-array-buffer",
{
"node": ">= 0.4"
}
],
[
"is-boolean-object",
{
Expand Down Expand Up @@ -377,6 +413,12 @@
"node": ">=0.4"
}
],
[
"safe-regex-test",
{
"node": ">= 0.4"
}
],
[
"salita",
{
Expand Down Expand Up @@ -407,6 +449,12 @@
"node": ">=0.10.0"
}
],
[
"side-channel",
{
"node": ">= 0.4"
}
],
[
"string-width",
{
Expand Down
48 changes: 48 additions & 0 deletions test/fixtures/graph-engines-only/ideal-entries
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,12 @@
"node": ">=4"
}
],
[
"array-buffer-byte-length",
{
"node": ">= 0.4"
}
],
[
"arraybuffer.prototype.slice",
{
Expand All @@ -29,6 +35,12 @@
"node": ">= 0.4"
}
],
[
"call-bind",
{
"node": ">= 0.4"
}
],
[
"camelcase",
{
Expand Down Expand Up @@ -83,6 +95,18 @@
"node": ">= 0.4"
}
],
[
"es-define-property",
{
"node": ">= 0.4"
}
],
[
"es-errors",
{
"node": ">= 0.4"
}
],
[
"es-set-tostringtag",
{
Expand Down Expand Up @@ -119,6 +143,12 @@
"node": ">= 0.4"
}
],
[
"get-intrinsic",
{
"node": ">= 0.4"
}
],
[
"get-stream",
{
Expand Down Expand Up @@ -179,6 +209,12 @@
"node": ">=0.10.0"
}
],
[
"is-array-buffer",
{
"node": ">= 0.4"
}
],
[
"is-boolean-object",
{
Expand Down Expand Up @@ -383,6 +419,12 @@
"node": ">=0.4"
}
],
[
"safe-regex-test",
{
"node": ">= 0.4"
}
],
[
"salita",
{
Expand Down Expand Up @@ -413,6 +455,12 @@
"node": ">=0.10.0"
}
],
[
"side-channel",
{
"node": ">= 0.4"
}
],
[
"string-width",
{
Expand Down
8 changes: 7 additions & 1 deletion test/fixtures/graph-root-same/ideal-dev-entries
Original file line number Diff line number Diff line change
Expand Up @@ -733,6 +733,12 @@
"node": ">=0.10.0"
}
],
[
"ip-address",
{
"node": ">= 12"
}
],
[
"is-arguments",
{
Expand Down Expand Up @@ -1464,7 +1470,7 @@
[
"socks",
{
"node": ">= 10.13.0",
"node": ">= 10.0.0",
"npm": ">= 3.0.0"
}
],
Expand Down
4 changes: 2 additions & 2 deletions test/fixtures/graph-root-same/ideal-dev-stderr
Original file line number Diff line number Diff line change
Expand Up @@ -21,12 +21,12 @@ Your “engines” field allows more node versions than your dependency graph do
├───────────────────────────────┼───────────────────────────────────────────────────────────┤
│ flat-cache │ ^10.12.0 || >=12.0.0 │
├───────────────────────────────┼───────────────────────────────────────────────────────────┤
│ ip-address │ >= 12 │
├───────────────────────────────┼───────────────────────────────────────────────────────────┤
│ ls-engines │ ^16 || ^15 || ^14.13 || ^12.20 │
├───────────────────────────────┼───────────────────────────────────────────────────────────┤
│ node-gyp │ >= 10.12.0 │
├───────────────────────────────┼───────────────────────────────────────────────────────────┤
│ socks │ >= 10.13.0 │
├───────────────────────────────┼───────────────────────────────────────────────────────────┤
│ yargs │ >=12 │
├───────────────────────────────┼───────────────────────────────────────────────────────────┤
│ yargs-parser │ >=12 │
Expand Down
56 changes: 55 additions & 1 deletion test/fixtures/graph-root-same/ideal-entries
Original file line number Diff line number Diff line change
Expand Up @@ -185,6 +185,12 @@
"node": ">=8"
}
],
[
"array-buffer-byte-length",
{
"node": ">= 0.4"
}
],
[
"array.prototype.flatmap",
{
Expand Down Expand Up @@ -252,6 +258,12 @@
"node": ">= 10"
}
],
[
"call-bind",
{
"node": ">= 0.4"
}
],
[
"callsites",
{
Expand Down Expand Up @@ -468,6 +480,18 @@
"node": ">= 0.4"
}
],
[
"es-define-property",
{
"node": ">= 0.4"
}
],
[
"es-errors",
{
"node": ">= 0.4"
}
],
[
"es-set-tostringtag",
{
Expand Down Expand Up @@ -642,6 +666,12 @@
"node": "6.* || 8.* || >= 10.*"
}
],
[
"get-intrinsic",
{
"node": ">= 0.4"
}
],
[
"get-package-type",
{
Expand Down Expand Up @@ -847,12 +877,24 @@
"node": ">=0.10.0"
}
],
[
"ip-address",
{
"node": ">= 12"
}
],
[
"is-arguments",
{
"node": ">= 0.4"
}
],
[
"is-array-buffer",
{
"node": ">= 0.4"
}
],
[
"is-boolean-object",
{
Expand Down Expand Up @@ -1580,6 +1622,12 @@
"node": ">= 0.10"
}
],
[
"safe-regex-test",
{
"node": ">= 0.4"
}
],
[
"semver",
{
Expand Down Expand Up @@ -1694,6 +1742,12 @@
"node": ">=8"
}
],
[
"side-channel",
{
"node": ">= 0.4"
}
],
[
"slice-ansi",
{
Expand All @@ -1710,7 +1764,7 @@
[
"socks",
{
"node": ">= 10.13.0",
"node": ">= 10.0.0",
"npm": ">= 3.0.0"
}
],
Expand Down
Loading

0 comments on commit 603dc39

Please sign in to comment.