Skip to content

Commit

Permalink
Update rust-wasm-bindgen monorepo (#7)
Browse files Browse the repository at this point in the history
* Update rust-wasm-bindgen monorepo

* Add `#[cfg(target_arch = "wasm32")]`

---------

Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
Co-authored-by: Daniëlle Huisman <[email protected]>
  • Loading branch information
renovate[bot] and DanielleHuisman authored Jan 28, 2025
1 parent 7e6f436 commit 88cd425
Show file tree
Hide file tree
Showing 7 changed files with 42 additions and 41 deletions.
71 changes: 32 additions & 39 deletions Cargo.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion packages/dom/src/label_helpers.rs
Original file line number Diff line number Diff line change
Expand Up @@ -126,7 +126,7 @@ pub fn get_labels(
}
}

#[cfg(test)]
#[cfg(all(test, target_arch = "wasm32"))]
mod tests {
use wasm_bindgen::JsCast;
use wasm_bindgen_test::{wasm_bindgen_test, wasm_bindgen_test_configure};
Expand Down
2 changes: 1 addition & 1 deletion packages/dom/src/matches.rs
Original file line number Diff line number Diff line change
Expand Up @@ -105,7 +105,7 @@ fn match_regex(matcher: &Regex, text: String) -> bool {
matcher.is_match(&text)
}

#[cfg(test)]
#[cfg(all(test, target_arch = "wasm32"))]
mod tests {
use std::rc::Rc;

Expand Down
2 changes: 2 additions & 0 deletions packages/dom/tests/element_queries.rs
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
#![cfg(target_arch = "wasm32")]

mod helpers;

use std::sync::{Arc, LazyLock, Mutex};
Expand Down
2 changes: 2 additions & 0 deletions packages/dom/tests/get_node_text.rs
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
#![cfg(target_arch = "wasm32")]

mod helpers;

use testing_library_dom::get_node_text;
Expand Down
2 changes: 2 additions & 0 deletions packages/dom/tests/pretty_dom.rs
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
#![cfg(target_arch = "wasm32")]

mod helpers;

use helpers::test_utils::render_into_document;
Expand Down
2 changes: 2 additions & 0 deletions packages/dom/tests/query_helpers.rs
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
#![cfg(target_arch = "wasm32")]

use std::sync::Arc;

use mockall::automock;
Expand Down

0 comments on commit 88cd425

Please sign in to comment.