We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 637fd0d commit aff76e0Copy full SHA for aff76e0
packages/yew/src/html/component/scope.rs
@@ -483,7 +483,7 @@ mod feat_csr {
483
use crate::scheduler;
484
485
impl AnyScope {
486
- #[cfg(test)]
+ #[cfg(all(test, target_arch = "wasm32"))]
487
pub(crate) fn test() -> Self {
488
Self {
489
type_id: TypeId::of::<()>(),
packages/yew/src/lib.rs
@@ -297,7 +297,7 @@ mod app_handle;
297
mod renderer;
298
299
#[cfg(feature = "csr")]
300
-#[cfg(test)]
+#[cfg(all(test, target_arch = "wasm32"))]
301
mod tests;
302
303
/// The module that contains all events available in the framework.
0 commit comments