Skip to main content
Version: 0.21

Testing apps


We are working on making it easy to test components, but this is currently a work in progress.

Support for shallow rendering can be found in the GitHub repository.

Snapshot testing

Yew exposes the yew::tests::layout_tests module to facilitate snapshot testing of components.


Help improve the documentation for snapshot testing.


The Rust/WASM working group maintains a crate called wasm_bindgen_test which allows you to run tests in a browser in a similar fashion to how the built-in #[test] procedural macro works. More information is given in the Rust Wasm working group's documentation for this module.