We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent d1be195 commit 38ad28fCopy full SHA for 38ad28f
src/vue-testing-library.js
@@ -92,7 +92,9 @@ function cleanupAtWrapper(wrapper) {
92
}
93
94
// Vue Testing Library's version of fireEvent will call DOM Testing Library's
95
-// version of fireEvent plus wait for one tick of the event loop so that...
+// version of fireEvent plus wait for one tick of the event loop to allow Vue
96
+// to asynchronously handle the event.
97
+// More info: https://vuejs.org/v2/guide/reactivity.html#Async-Update-Queue
98
async function fireEvent(...args) {
99
dtlFireEvent(...args)
100
await wait()
0 commit comments