Skip to content

Commit 2d4d468

Browse files
authored
docs: add note about partial transition stub support (#2431)
1 parent c128e4b commit 2d4d468

File tree

1 file changed

+11
-0
lines changed

1 file changed

+11
-0
lines changed

docs/guide/advanced/transitions.md

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -55,3 +55,14 @@ test('works with transitions', async () => {
5555
expect(wrapper.get('p').text()).toEqual('hello')
5656
})
5757
```
58+
59+
## Partial support
60+
61+
The Vue Test Utils built-in transition stub is simple and doesn't cover all of of Vue's [Transition features](https://vuejs.org/guide/built-ins/transition). For instance [javascript hooks](https://vuejs.org/guide/built-ins/transition#javascript-hooks) are not supported. This limitation could potentially lead to Vue warnings.
62+
63+
::: tip
64+
Potential solutions:
65+
- You can turn off the auto stubbing by setting [global stubs transition](../../api/#global-stubs) to false
66+
- You can create your own transition stub that can handle these hooks if necessary.
67+
- You can spy the warning in the test to silence it.
68+
:::

0 commit comments

Comments
 (0)