We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
requestAnimationFrame
1 parent 012b0a5 commit 2324c65Copy full SHA for 2324c65
docs/guide/advanced/transitions.md
@@ -66,3 +66,9 @@ Potential solutions:
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
:::
69
+
70
+If you do turn off auto stubbing, note that you might also need to mock `requestAnimationFrame` to ensure that the javascript hooks fire properly:
71
72
+```js
73
+vi.spyOn(window, 'requestAnimationFrame').mockImplementation(cb => cb());
74
+```
0 commit comments