From 26207917ec6b1011eb8348c9a05d31be3a6a2d9f Mon Sep 17 00:00:00 2001 From: Namilskyy Date: Mon, 1 Dec 2025 16:14:03 +0300 Subject: Added the ability to transfer config through an environment variable --- tests/shared.rs | 5 +++++ 1 file changed, 5 insertions(+) (limited to 'tests/shared.rs') diff --git a/tests/shared.rs b/tests/shared.rs index 5df63de..d226425 100644 --- a/tests/shared.rs +++ b/tests/shared.rs @@ -19,5 +19,10 @@ pub fn create_test_config(temp_dir_path: &str) -> Config { }, }; + // Export this config as TOML so runtime code can read it via MESK_CONFIG_TOML + if let Ok(toml_str) = toml::to_string(&cfg) { + std::env::set_var("MESK_CONFIG_TOML", toml_str); + } + cfg } -- cgit v1.2.3