Skip to content

Commit c115106

Browse files
authored
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.
1 parent bf93906 commit c115106

File tree

1 file changed

+2
-7
lines changed

1 file changed

+2
-7
lines changed

Diff for: docs/advanced/testing.md

+2-7
Original file line numberDiff line numberDiff line change
@@ -25,17 +25,12 @@ transformIgnorePatterns: [
2525
The following examples will use vue-test-utils API to conduct the tests.
2626
:::
2727

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-
const wrapper = mount(MyComponent, { sync: false });
34-
```
3528

3629
After triggering an event like an input event, make sure to call flushPromises before checking the UI for changes:
3730

3831
```js
32+
import flushPromises from 'flush-promises'
33+
3934
await flushPromises();
4035
```
4136

0 commit comments

Comments
 (0)