Level 80
@orest It’s a component. I’d test it using something like Jest.
1 like
Summer Sale! All accounts are 50% off this week.
When you have a reusable vue component, for example
<like-button v-if="!post.is_liked" :user="user"></like-button>
And you want to test using dusk or any other testing framework, that
Do you write tests for every view that actually uses the like button ?
Or do you prefer to test the like button only in 1 view ( just pick one view that uses the button ) and assume that the button works ?
@orest It’s a component. I’d test it using something like Jest.
Please or to participate in this conversation.