Skip to content

Commit

Permalink
Add versions and tests for process.report
Browse files Browse the repository at this point in the history
Fixes mysticatea#271, after verifying the versions mentioned in that bug
  • Loading branch information
cincodenada committed Sep 1, 2021
1 parent f45c614 commit dfca4ab
Show file tree
Hide file tree
Showing 2 changed files with 35 additions and 1 deletion.
8 changes: 7 additions & 1 deletion lib/rules/no-unsupported-features/node-builtins.js
Original file line number Diff line number Diff line change
Expand Up @@ -261,7 +261,13 @@ const trackMap = {
},
},
release: { [READ]: { supported: "3.0.0" } },
report: { [READ]: { supported: null, experimental: "11.8.0" } },
report: {
[READ]: {
supported: "13.12.0",
backported: ["12.17.0"],
experimental: "11.8.0",
},
},
resourceUsage: { [READ]: { supported: "12.6.0" } },
setegid: { [READ]: { supported: "2.0.0" } },
seteuid: { [READ]: { supported: "2.0.0" } },
Expand Down
28 changes: 28 additions & 0 deletions tests/lib/rules/no-unsupported-features/node-builtins.js
Original file line number Diff line number Diff line change
Expand Up @@ -3832,6 +3832,14 @@ new RuleTester({
code: "process.release",
options: [{ version: "3.0.0" }],
},
{
code: "process.report",
options: [{ version: "13.12.0" }],
},
{
code: "process.report",
options: [{ version: "12.17.0" }],
},
{
code: "process.setegid",
options: [{ version: "2.0.0" }],
Expand Down Expand Up @@ -3917,6 +3925,12 @@ new RuleTester({
{ version: "2.9.9", ignores: ["process.release"] },
],
},
{
code: "process.report",
options: [
{ version: "11.7.9", ignores: ["process.report"] },
],
},
{
code: "process.setegid",
options: [
Expand Down Expand Up @@ -4169,6 +4183,20 @@ new RuleTester({
},
],
},
{
code: "process.report",
options: [{ version: "11.7.9" }],
errors: [
{
messageId: "unsupported",
data: {
name: "process.report",
supported: "13.12.0 (backported: ^12.17.0)",
version: "11.7.9",
},
},
],
},
],
},

Expand Down

0 comments on commit dfca4ab

Please sign in to comment.