Skip to content

Commit 3130470

Browse files
committed
test: fix failing case
1 parent 9221001 commit 3130470

File tree

1 file changed

+5
-2
lines changed

1 file changed

+5
-2
lines changed

packages/vee-validate/tests/useFieldArray.spec.ts

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
import { useForm, useFieldArray, FieldEntry, FormContext, FieldArrayContext } from '@/vee-validate';
2-
import { onMounted, Ref } from 'vue';
2+
import { nextTick, onMounted, Ref } from 'vue';
33
import * as yup from 'yup';
44
import { mountWithHoc, flushPromises } from './helpers';
55

@@ -90,7 +90,10 @@ test('warns when updating a no-longer existing item', async () => {
9090
onMounted(() => {
9191
const item = fields.value[0];
9292
remove(0);
93-
item.value = 'test';
93+
94+
nextTick(() => {
95+
item.value = 'test';
96+
});
9497
});
9598
},
9699
template: `

0 commit comments

Comments
 (0)