Testing of computed properties
See original GitHub issueWhen trying to test a computed property using AVA and with Avoriaz, the context of this
is not what is expected. I’m trying to use a computed property that is based on some data from the component.
More details on stackoverflow.
Issue Analytics
- State:
- Created 7 years ago
- Comments:14 (11 by maintainers)
Top Results From Across the Web
Computed Properties - Vue Testing Handbook
Let's start with looking at two different ways to test a computed property. We will develop a <NumberRenderer> component, that renders ...
Read more >Test Computed Properties and Watchers in Vue.js ... - Alex Jover
Testing a computed property is very simple, and probably sometimes you don't test a computed property exclusively, but test it as part of ......
Read more >how can i test a computed property in vuejs using jest?
im still new with unit testing and i want to test if the a linked button is displayed when the isLinkPresent computed property...
Read more >Learn How To Test Computed Properties and Watchers
In this lesson, we'll learn how to test one of our favorite features of Vue.js, computed properties, and watchers. There is also a...
Read more >Computed Properties - Testing Vue.js Components with Jest
Testing a computed property is very simple, and sometimes we don't test a computed property exclusively but test it as part of other...
Read more >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
@jasperck Hi, sorry for the miselading message. I’ve updated and released a correct warning message in 1.9.4.
To access props with this bound the vue instance, you must run:
hi @eddyerburgh I was writing tests for my vue component, when I tried to test the part of props, I was doing something like this
Then I got this warning messages and found out the reason in the issue from the messages.
According to the comment https://github.com/eddyerburgh/avoriaz/issues/15#issuecomment-289435469, looks like there is still no solution for somethink like
am I right, guys?