-
Notifications
You must be signed in to change notification settings - Fork 668
update docs/ja #978
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
update docs/ja #978
Changes from 3 commits
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -131,6 +131,20 @@ mount(Component, { | |
}) | ||
``` | ||
|
||
### スタブコンポーネント | ||
|
||
グローバルまたは `stubs` オプションを使用してローカルに登録されたコンポーネントを上書きできます: | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more.
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. あ、確かにそうですね。そのように修正します! |
||
|
||
```js | ||
import { mount } from '@vue/test-utils' | ||
|
||
mount(Component, { | ||
// 空スタブによってグローバルに登録されたコンポーネントを | ||
// 解決します | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more.
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. 確かにそうですね。そのように修正します! |
||
stubs: ['globally-registered-component'] | ||
}) | ||
``` | ||
|
||
### ルーティングの扱い | ||
|
||
定義によるルーティングは、アプリケーションの全体的な構造と関連し、複数のコンポーネントが関係するため、統合テストまたはエンドツーエンドテストによってよくテストされます。 | ||
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
誤字 👀
マウティング → マウンティング
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
ありがとうございます!