Skip to content

Commit e71b707

Browse files
Ari BreitkreuzaDogCalledSpot
Ari Breitkreuz
authored andcommitted
Ensure interoperability with normal cargo test
1 parent 76c48f1 commit e71b707

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

crates/test/src/lib.rs

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -69,4 +69,8 @@ macro_rules! wasm_bindgen_test_configure {
6969
#[path = "rt/mod.rs"]
7070
pub mod __rt;
7171

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

0 commit comments

Comments
 (0)