diff --git a/Sources/XCTestDynamicOverlay/XCTIsTesting.swift b/Sources/XCTestDynamicOverlay/XCTIsTesting.swift index 86a0df2e..2f08e9ac 100644 --- a/Sources/XCTestDynamicOverlay/XCTIsTesting.swift +++ b/Sources/XCTestDynamicOverlay/XCTIsTesting.swift @@ -1,5 +1,6 @@ import Foundation +#if !os(WASI) public let _XCTIsTesting: Bool = { ProcessInfo.processInfo.environment.keys.contains("XCTestSessionIdentifier") || ProcessInfo.processInfo.arguments.first @@ -7,3 +8,4 @@ public let _XCTIsTesting: Bool = { .map { $0.lastPathComponent == "xctest" || $0.pathExtension == "xctest" } ?? false }() +#endif