[Vuejs]-How to pass props during the setup and test phases, without overwriting things?

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} })

Leave a comment