From 0c48b266265393668b74cff04bddcf016cf30fef Mon Sep 17 00:00:00 2001 From: Jacob Smith <3012099+JakobJingleheimer@users.noreply.github.com> Date: Mon, 2 Dec 2024 21:17:36 +0100 Subject: [PATCH] cli: allow test-coverage, module mocks, and snapshots in `NODE_OPTIONS` --- src/node_options.cc | 3 +++ 1 file changed, 3 insertions(+) diff --git a/src/node_options.cc b/src/node_options.cc index 87ea4180f86cfd..2bde1e12d06ee5 100644 --- a/src/node_options.cc +++ b/src/node_options.cc @@ -532,6 +532,9 @@ EnvironmentOptionsParser::EnvironmentOptionsParser() { kAllowedInEnvvar); AddOption( "--experimental-specifier-resolution", "", NoOp{}, kAllowedInEnvvar); + AddOption("--experimental-test-coverage", "", NoOp{}, kAllowedInEnvvar); + AddOption("--experimental-test-module-mocks", "", NoOp{}, kAllowedInEnvvar); + AddOption("--experimental-test-snapshots", "", NoOp{}, kAllowedInEnvvar); AddAlias("--es-module-specifier-resolution", "--experimental-specifier-resolution"); AddOption("--deprecation",