summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorBartek IwaƄczuk <biwanczuk@gmail.com>2024-08-29 01:21:59 +0100
committerGitHub <noreply@github.com>2024-08-29 02:21:59 +0200
commit27d0897841386068560ffad256c6c8ac27adefe1 (patch)
tree8d1a9efce1ef227e438b1cd016ceae08fcfde1fa
parent52fb6582e7121a6c253c83b95e9706d236262cbe (diff)
test: run specs::npm::exec_file_inside_npm_package with DENO_FUTURE=1 (#25282)
The test is failing if run with `DENO_FUTURE=1` which is blocking https://github.com/denoland/deno/pull/25213. --------- Co-authored-by: David Sherret <dsherret@gmail.com>
-rw-r--r--cli/args/mod.rs1
-rw-r--r--tests/specs/npm/exec_file_inside_npm_package/__test__.jsonc5
2 files changed, 5 insertions, 1 deletions
diff --git a/cli/args/mod.rs b/cli/args/mod.rs
index a6b547fd7..bd5309c01 100644
--- a/cli/args/mod.rs
+++ b/cli/args/mod.rs
@@ -1614,6 +1614,7 @@ impl CliOptions {
pub fn use_byonm(&self) -> bool {
if self.enable_future_features()
&& self.node_modules_dir_enablement().is_none()
+ && self.maybe_node_modules_folder.is_some()
&& self
.workspace()
.config_folders()
diff --git a/tests/specs/npm/exec_file_inside_npm_package/__test__.jsonc b/tests/specs/npm/exec_file_inside_npm_package/__test__.jsonc
index f816bad86..01e6cc431 100644
--- a/tests/specs/npm/exec_file_inside_npm_package/__test__.jsonc
+++ b/tests/specs/npm/exec_file_inside_npm_package/__test__.jsonc
@@ -1,4 +1,7 @@
{
"args": "run -A main.ts",
- "output": "main.out"
+ "output": "main.out",
+ "envs": {
+ "DENO_FUTURE": "1"
+ }
}