Skip to content

Commit 373144a

Browse files
authored
Update config.md
1 parent 912c7cc commit 373144a

File tree

1 file changed

+15
-0
lines changed

1 file changed

+15
-0
lines changed

docs/ja/api/config.md

Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -78,3 +78,18 @@ VueTestUtils.config.provide['$logger'] = {
7878
}
7979
}
8080
```
81+
82+
### `logModifiedComponents`
83+
84+
- 型: `Boolean`
85+
- デフォルト: `true`
86+
87+
`Vue.extend()` で拡張された子コンポーネントは自動的にスタブされます。その時、そのことを警告するログが表示されます。 `false` をセットすると警告は表示されません。他の config のオプションと違って、これはマウティングオプションでセットすることができません。
88+
89+
例:
90+
91+
```js
92+
import VueTestUtils from '@vue/test-utils'
93+
94+
VueTestUtils.config.logModifiedComponents = false
95+
```

0 commit comments

Comments
 (0)