diff options
| author | Namilskyy <alive6863@gmail.com> | 2025-12-01 16:14:03 +0300 |
|---|---|---|
| committer | Namilskyy <alive6863@gmail.com> | 2025-12-01 16:14:03 +0300 |
| commit | 26207917ec6b1011eb8348c9a05d31be3a6a2d9f (patch) | |
| tree | c35a1f24df842357c7258788b0cb10cd9b791ceb /tests | |
| parent | d979b6da3622b458922a7a57b3e7aaf18fcab291 (diff) | |
Added the ability to transfer config through an environment variable
Diffstat (limited to 'tests')
| -rw-r--r-- | tests/shared.rs | 5 |
1 files changed, 5 insertions, 0 deletions
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 } |
