diff --git a/crates/host/src/tests.rs b/crates/host/src/tests.rs index f628ce4e4..de43d9dc2 100644 --- a/crates/host/src/tests.rs +++ b/crates/host/src/tests.rs @@ -546,6 +546,7 @@ fn script_imports_footage_and_saves() { std::fs::create_dir_all(&dir).unwrap(); let q = |n: &str| serde_json::to_string(&dir.join(n).to_string_lossy()).unwrap(); let mut s = super::session(); + s.execute("prefs.set", json!({"key": "scripting.allowScriptsWriteFiles", "value": true})).unwrap(); let code = format!( r#" var c = app.project.items.addComp("Src", 32, 32, 1, 1, 10);