0👍
For example if I have:
var posts = {
status: 6
rows: [{}, {}, {}]
details: "some details",
amount: 1
}
And I want to test component with changed status value without exception, I do:
post.status = status
wrapper.setProps({ post: { ...post} })
- [Vuejs]-Vue styling components
- [Vuejs]-I have a route component, why are my props not automatically updating when I set them in the route definition?
Source:stackexchange.com