[Vuejs]-Rethrowing an error causes vue warning in jest test

0👍

One solution is to set a no-op app.config.errorHandler via the global.config mounting option:

const wrapper = mount(Child, {
  global: {
    config: {
      errorHandler(err) { /* ignore */ },
    },
  },
})

demo

Leave a comment