Questions tagged [avoriaz]
13 questions
8
votes
1 answer
Test computed property in Vue.js using AVA with Avoriaz
I'm trying to test a computed property of a Vue.js component using AVA and Avoriaz. I can mount the component and access the data properties fine.
When I try an access a computed property, the function doesn't seem to have scope to the data on that…

Ryan Gill
- 1,728
- 2
- 13
- 27
6
votes
4 answers
How to unit test VueJS watcher on $route
I'm testing a Single file component that uses vue router to watch $route. The problem is that I can't get the test to both change the route and trigger the watcher's function.
The test file:
import { createLocalVue, shallow } from…

Brandon Deo
- 4,195
- 4
- 25
- 42
5
votes
2 answers
How to test async method in Vuejs's component when using jest and avoriaz
For instance, I have a component looks like this.