Skip to content

Commit

Permalink
Ensure interoperability with normal cargo test
Browse files Browse the repository at this point in the history
  • Loading branch information
aDogCalledSpot committed Jan 16, 2024
1 parent 6fc34c1 commit 78e5f6d
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions crates/test/src/lib.rs
Expand Up @@ -75,4 +75,8 @@ macro_rules! wasm_bindgen_test_configure {
#[path = "rt/mod.rs"]
pub mod __rt;

// Make this only available to wasm32 so that we don't
// import minicov on other archs.
// That way you can use normal cargo test without minicov
#[cfg(target_arch = "wasm32")]
mod coverage;

0 comments on commit 78e5f6d

Please sign in to comment.