Skip to content

Commit a6ba937

Browse files
committed
fix: avoid Tauri mock test crash on Windows
1 parent e679de2 commit a6ba937

2 files changed

Lines changed: 5 additions & 0 deletions

File tree

‎src-tauri/Cargo.toml‎

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -37,4 +37,6 @@ wait-timeout = "0.2"
3737

3838
[dev-dependencies]
3939
pretty_assertions = "1"
40+
41+
[target.'cfg(not(target_os = "windows"))'.dev-dependencies]
4042
tauri = { version = "2.8", features = ["test"] }

‎src-tauri/src/lib.rs‎

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -607,6 +607,9 @@ mod tests {
607607
));
608608
}
609609

610+
// Tauri mock apps currently make Windows test harnesses fail before startup:
611+
// https://github.com/tauri-apps/tauri/issues/13419
612+
#[cfg(not(target_os = "windows"))]
610613
#[test]
611614
fn reveal_main_targets_the_main_window() {
612615
let app = tauri::test::mock_app();

0 commit comments

Comments
 (0)