Skip to content

Commit 45c5b40

Browse files
committed
docs: add tip
1 parent 3e9d174 commit 45c5b40

File tree

1 file changed

+7
-1
lines changed

1 file changed

+7
-1
lines changed

docs/api/index.md

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -213,6 +213,12 @@ test('renders slots content', () => {
213213

214214
### `global.components`
215215

216+
::: tip
217+
You can configure all the `global` options on both a per test basis and globally for all tests. [See here for how to configure project wide defaults](/api/#global-config-2).
218+
:::
219+
220+
###
221+
216222
Registers components globally to all components
217223

218224
`Component.spec.js`:
@@ -1308,6 +1314,6 @@ const Component = {
13081314

13091315
it('uses global config', () => {
13101316
const wrapper = mount(Component)
1311-
console.log(wrapper.html()) // <p>message</p><div />
1317+
console.log(wrapper.html()) // <p>message</p><div></div>
13121318
})
13131319
```

0 commit comments

Comments
 (0)