From 2d92a4470a22ac83ed85c0f583bcd863d384680e Mon Sep 17 00:00:00 2001 From: Claude Date: Sat, 26 Sep 2026 05:07:28 +0000 Subject: [PATCH] tsc-platform: run the notification test on Linux only On Windows it would show a real toast from the CI runner. Co-Authored-By: Claude Opus 5.5 Claude-Session: https://claude.ai/code/session_01NJvYyRmTjKcb9i8eyYXK5G --- crates/tsc-platform/src/notify.rs | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) 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::*;