mirror of
https://github.com/yewstack/yew.git
synced 2026-01-25 16:43:15 +00:00
* Update CHANGELOG Changelog run: https://github.com/yewstack/yew/actions/runs/6283917852/job/17064800916 * docusaurus docs:version 0.21 * migration guide * blog post * prettier * make website warnings go away * make GA work * Apply suggestions from code review * Apply suggestion from review Co-authored-by: Kaede Hoshikawa <futursolo@users.noreply.github.com> * prettier --------- Co-authored-by: Kaede Hoshikawa <futursolo@users.noreply.github.com>
26 lines
945 B
Plaintext
26 lines
945 B
Plaintext
---
|
|
title: 'Testing apps'
|
|
description: 'Testing your app'
|
|
---
|
|
|
|
:::info
|
|
We are working on making it easy to test components, but this is currently a work in progress.
|
|
|
|
Support for [shallow rendering](https://github.com/yewstack/yew/issues/1413) can be found in the GitHub repository.
|
|
:::
|
|
|
|
## Snapshot testing
|
|
|
|
Yew exposes the `yew::tests::layout_tests` module to facilitate snapshot testing of components.
|
|
|
|
:::important contribute
|
|
Help improve the documentation for snapshot testing.
|
|
:::
|
|
|
|
## wasm_bindgen_test
|
|
|
|
The Rust/WASM working group maintains a crate called [`wasm_bindgen_test`](https://rustwasm.github.io/docs/wasm-bindgen/wasm-bindgen-test/index.html)
|
|
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](https://rustwasm.github.io/docs/wasm-bindgen/wasm-bindgen-test/index.html)
|
|
for this module.
|