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.
1 parent 83ee1da commit f673c3dCopy full SHA for f673c3d
test/index.test.ts
@@ -29,10 +29,11 @@ describe('zero-vue', () => {
29
30
expect(users.value).toEqual([])
31
32
- z.value.mutate.user.insert({ id: 'asdf', name: 'Alice' })
+ const mutation = z.value.mutate.user.insert({ id: 'asdf', name: 'Alice' })
33
34
35
- await new Promise(resolve => setTimeout(resolve, 0))
+
36
+ await mutation
37
38
expect(users.value).toMatchInlineSnapshot(`
39
[
0 commit comments