mirror of
https://github.com/yewstack/yew.git
synced 2025-12-08 21:26:25 +00:00
* 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>
25 lines
879 B
Plaintext
25 lines
879 B
Plaintext
---
|
||
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)。
|