this.element.querySelectorAll is not a function
See original GitHub issuecode : expect(wrapper.contains('p')).toBe(true);
error: this.element.querySelectorAll is not a function
version: 3.2.0
Issue Analytics
- State:
- Created 6 years ago
- Comments:5 (3 by maintainers)
Top Results From Across the Web
querySelectorAll is not a function - Stack Overflow
You are trying to call it on the return value of a call to querySelectorAll which returns a Node List (which is an...
Read more >TypeError: querySelectorAll is not a function in JS | bobbyhadz
To solve the "querySelectorAll is not a function" error, make sure to only call the querySelectorAll method on a valid DOM element or...
Read more >document.queryselector(...).click is not a function - You.com
To solve the "querySelectorAll is not a function" error, make sure to only call the `querySelectorAll` method on a valid DOM element or...
Read more >Element.querySelectorAll() - Web APIs | MDN
The Element method querySelectorAll() returns a static (not live) NodeList representing a list of elements matching the specified group of ...
Read more >Avoid Errors With document.querySelector ... - | Ryan Dejaegher
Why does this matter? If we're using document.querySelector in our functions we can quickly bail if an element isn't found:.
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 Free
Top 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
Yep Vue Test Utils is based off avoriaz. You’re better of using Vue Test Utils, so I’m glad it was easy for you to migrate 👍
The app was building fine for development and production as far as I can remember. It is now, and I’ve not changed much. I have swapped out Avoriaz for vue-test-utils and managed to get tests working (just changed
shallow
toshallowMount
from vue-test-utils). Am I right in thinking vue-test-utils is a fork of Avoriaz and being adopted as the official testing library?