From 27d0897841386068560ffad256c6c8ac27adefe1 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Bartek=20Iwa=C5=84czuk?= Date: Thu, 29 Aug 2024 01:21:59 +0100 Subject: [PATCH] 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 --- cli/args/mod.rs | 1 + tests/specs/npm/exec_file_inside_npm_package/__test__.jsonc | 5 ++++- 2 files changed, 5 insertions(+), 1 deletion(-) diff --git a/cli/args/mod.rs b/cli/args/mod.rs index a6b547fd75..bd5309c01e 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 f816bad869..01e6cc4314 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" + } }