Macro emit_wasm
macro_rules! emit_wasm {
($($name:ident),* $(,)?) => { ... };
}Expand description
Emits one #[wasm_bindgen_test] per rule.
The caller’s crate needs wasm-bindgen-test in its dev-dependencies,
gated on cfg(target_arch = "wasm32"); as with the tokio emitter the
attribute resolves in the caller’s scope.
This is the one emitter that does not call
RuleOutcome::report, and the reason is the
target rather than taste: println! writes nowhere on
wasm32-unknown-unknown, so a skip reported through it leaves no record on
the only target CF-20 and CF-23 exist for. console_log! is what the
runner captures, and resolving it through the caller’s wasm_bindgen_test —
which the #[wasm_bindgen_test] attribute above already requires — keeps the
testkit itself free of a wasm-bindgen dependency.
Select it by passing emit = happenstance_testkit::emit_wasm to
event_store_conformance!.
The name is promised (CF-41): renaming or removing it is a major release of
this crate.