diff --git a/src/bundler.rs b/src/bundler.rs index 866d4a2..572614e 100644 --- a/src/bundler.rs +++ b/src/bundler.rs @@ -65,6 +65,9 @@ pub async fn bundle_project( plat = Platform::current() ); + // Emit a plain stdout line so tests (and users without verbose logging) can detect the exact Node.js version + println!("Node.js v{node_version}"); + if source_dir != project_path { debug!("Using source directory: {}", source_dir.display()); } diff --git a/tests/common/mod.rs b/tests/common/mod.rs index 70b7721..116707c 100644 --- a/tests/common/mod.rs +++ b/tests/common/mod.rs @@ -680,12 +680,12 @@ impl BundlerTestHelper { #[cfg(windows)] let (exec_path_owned, _temp_guard) = { let tmp = TempDir::new().context("Failed to create temp dir for executable copy")?; - let file_name = executable_path - .file_name() - .ok_or_else(|| anyhow::anyhow!( + let file_name = executable_path.file_name().ok_or_else(|| { + anyhow::anyhow!( "Executable path missing file name: {}", executable_path.display() - ))?; + ) + })?; let dest = tmp.path().join(file_name); std::fs::copy(executable_path, &dest).with_context(|| { format!(