Skip to content

AI media harness for planning, generating, and editing locally

TypeScript

export_image_file is a test-only shorthand

Bittib87a3a0fca12
diff --git a/src-tauri/src/commands/artifacts.rs b/src-tauri/src/commands/artifacts.rs
index d4fa821..7bcd5f1 100644
--- a/src-tauri/src/commands/artifacts.rs
+++ b/src-tauri/src/commands/artifacts.rs
@@ -297,6 +297,8 @@ fn has_extension(path: &std::path::Path, extensions: &[&str]) -> bool {
}
/// Export at the generated size and default quality; see export_image_file_with.
+/// The app always passes options; this is the tests' shorthand.
+#[cfg(test)]
pub(crate) fn export_image_file(
source: &std::path::Path,
destination: &std::path::Path,