伊欧 d77cf0196b
Prepare for 0.22 release (#3750)
* Update CHANGELOG
https://github.com/yewstack/yew/actions/runs/11314974928/job/31465588862

* Add items.

* Write blog.

* Archive the documents.

* Add author.

* Update SSR document.

* Fix typo.

* Add simplified Chinese translation.

* Update package.json

* Sync documents

* Add traditional Chinese translation.

* Sync documents

* Add Japanese translation.

* Sync documents

* Fix typo by `fmt:write`.

* Fix typo by `write-translations`.

* Apply suggestions from code review

* Fix typo.

* #3769 in changelog

---------

Co-authored-by: Elina <imelina@elina.website>
2024-12-17 16:27:02 +08:00

25 lines
867 B
Plaintext
Raw Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

---
title: '测试应用'
description: '测试你的应用'
---
:::info
我们正在努力让测试组件变得更容易,但目前仍在进行中。
在 GitHub 仓库中可以找到对 [浅渲染](https://github.com/yewstack/yew/issues/1413) 的支持。
:::
## 快照测试
Yew 提供了 `yew::tests::layout_tests` 模块来方便组件的快照测试。
:::important 改进文档
我们需要帮助,以改进快照测试的文档。
:::
## wasm_bindgen_test
Rust/WASM 工作组维护了一个叫做 [`wasm_bindgen_test`](https://rustwasm.github.io/docs/wasm-bindgen/wasm-bindgen-test/index.html) 的 crate
它允许你以类似于内置的 `#[test]` 过程宏的方式在浏览器中运行测试。
有关此模块的更多信息,请参阅 [Rust Wasm 工作组的文档](https://rustwasm.github.io/docs/wasm-bindgen/wasm-bindgen-test/index.html)。