You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
docs(testing): removed sync mode from vueTestUtils (#2829)
Removed sync mode from vueTestUtils, since (it has been removed)[vuejs/vue-test-utils#1137].
Also add the import of flushPromises(). It took quite some time to find out that it was an external package.
Copy file name to clipboardExpand all lines: docs/advanced/testing.md
+2-7
Original file line number
Diff line number
Diff line change
@@ -25,17 +25,12 @@ transformIgnorePatterns: [
25
25
The following examples will use vue-test-utils API to conduct the tests.
26
26
:::
27
27
28
-
VeeValidate is primarily asynchronous, so you would need to disable vue-test-utils sync mode. And you will use flush-promises to wait for the updated to take effect.
29
-
30
-
To disable the sync mode, when mounting the component set the sync option to false in the mounting options.
31
-
32
-
```js
33
-
constwrapper=mount(MyComponent, { sync:false });
34
-
```
35
28
36
29
After triggering an event like an input event, make sure to call flushPromises before checking the UI for changes:
0 commit comments