mirror of
https://github.com/yewstack/yew.git
synced 2025-12-08 21:26:25 +00:00
25 lines
1.3 KiB
Plaintext
25 lines
1.3 KiB
Plaintext
---
|
|
title: 'アプリケーションのテスト'
|
|
description: 'アプリケーションをテストする'
|
|
---
|
|
|
|
:::info
|
|
コンポーネントのテストをより簡単にするために努力していますが、現在進行中です。
|
|
|
|
[浅いレンダリング](https://github.com/yewstack/yew/issues/1413) のサポートは GitHub リポジトリで見つけることができます。
|
|
:::
|
|
|
|
## スナップショットテスト
|
|
|
|
Yew はコンポーネントのスナップショットテストを容易にするために `yew::tests::layout_tests` モジュールを提供しています。
|
|
|
|
:::important ドキュメントの改善
|
|
スナップショットテストのドキュメントを改善するための助けが必要です。
|
|
:::
|
|
|
|
## wasm_bindgen_test
|
|
|
|
Rust/WASM ワーキンググループは [`wasm_bindgen_test`](https://wasm-bindgen.github.io/wasm-bindgen/wasm-bindgen-test/index.html) というクレートを維持しています。
|
|
これにより、組み込みの `#[test]` プロシージャマクロに似た方法でブラウザ内でテストを実行できます。
|
|
このモジュールの詳細については、[Rust Wasm ワーキンググループのドキュメント](https://wasm-bindgen.github.io/wasm-bindgen/wasm-bindgen-test/index.html) を参照してください。
|