-
Notifications
You must be signed in to change notification settings - Fork 665
Closed
Labels
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')
ddykhoff, blaadje, KarenL70, ichsarut, cheesytim and 17 moreLinusBorg