fix(tui): harden rendering and centralize tests

This commit is contained in:
objz committed 2026-07-27 01:09:33 +02:00
1 parent 9b17ec96c5
commit 64bb5e2d16
66 files changed
+271 -48

No files matched your search

@@ -3,3 +3,12 @@ mod state;
pub use render::{popup_rect, render};
pub use state::{ImportResult, ImportStep, ImportWizardState, handle_key, take_result};
#[cfg(test)]
pub(crate) fn reset_for_test() {
state::IMPORT_STATE
.lock()
.expect("import wizard state")
.reset();
*state::IMPORT_RESULT.lock().expect("import wizard result") = None;
}