diff --git a/crates/tsc-platform/src/notify.rs b/crates/tsc-platform/src/notify.rs index 8bef6c9..15eec0b 100644 --- a/crates/tsc-platform/src/notify.rs +++ b/crates/tsc-platform/src/notify.rs @@ -60,7 +60,8 @@ pub async fn notify(n: &Notification) -> Result<()> { } } -#[cfg(test)] +// On Windows a toast would really show, so Linux only. +#[cfg(all(test, unix, not(target_os = "macos")))] mod tests { use super::*;