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 17, 2024
1 parent 76c48f1 commit e71b707
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions crates/test/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -69,4 +69,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 e71b707

Please sign in to comment.