Closed
Description
It would be useful to be able to mock $refs.
Currently, as far as I understand there is no way to test a method that calls a childs methods via $refs.
methodToTest ( ) {
this.a = 1
this.$refs.childComponent.childsMethod()
}
---
undefined is not an object (evaluating 'this.$refs.childComponent.childsMethod')