Skip to content

Commit

Permalink
test: check --test is disallowed in NODE_OPTIONS
Browse files Browse the repository at this point in the history
PR-URL: #44846
Reviewed-By: Darshan Sen <raisinten@gmail.com>
Reviewed-By: Colin Ihrig <cjihrig@gmail.com>
Reviewed-By: Luigi Pinca <luigipinca@gmail.com>
Reviewed-By: Daeyeon Jeong <daeyeon.dev@gmail.com>
Reviewed-By: Tierney Cyren <hello@bnb.im>
Reviewed-By: James M Snell <jasnell@gmail.com>
Reviewed-By: Zeyu "Alex" Yang <himself65@outlook.com>
  • Loading branch information
cola119 authored and danielleadams committed Oct 11, 2022
1 parent ada7d82 commit a080608
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions test/parallel/test-cli-node-options-disallowed.js
Original file line number Diff line number Diff line change
Expand Up @@ -28,6 +28,7 @@ disallow('--v8-options');
disallow('--expose_internals');
disallow('--expose-internals');
disallow('--');
disallow('--test');

function disallow(opt) {
const env = { ...process.env, NODE_OPTIONS: opt };
Expand Down

0 comments on commit a080608

Please sign in to comment.