Skip to content

Commit bdd5f76

Browse files
committed
Fix updateProps Function
* Changed updateProps to return the Promise created from wrapper.setProps.
1 parent 920dff2 commit bdd5f76

File tree

1 file changed

+1
-4
lines changed

1 file changed

+1
-4
lines changed

src/vue-testing-library.js

+1-4
Original file line numberDiff line numberDiff line change
@@ -80,10 +80,7 @@ function render(
8080
isUnmounted: () => wrapper.vm._isDestroyed,
8181
html: () => wrapper.html(),
8282
emitted: () => wrapper.emitted(),
83-
updateProps: _ => {
84-
wrapper.setProps(_)
85-
return waitFor(() => {})
86-
},
83+
updateProps: _ => wrapper.setProps(_),
8784
...getQueriesForElement(baseElement),
8885
}
8986
}

0 commit comments

Comments
 (0)