[Vuejs]-How do you test a Vue.js modal component with Jest?

0👍

The options you are passing should be on the root level of the object, and props data is set with the propsData option:

const wrapper = mount(TeamMember, {
  propsData: {
    item: {
      avatar: 'path/to_image.png',
      full_name: 'Robocop'
    }
  }
})

Leave a comment