question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

this.element.querySelectorAll is not a function

See original GitHub issue

code : expect(wrapper.contains('p')).toBe(true); error: this.element.querySelectorAll is not a function version: 3.2.0

Issue Analytics

  • State:open
  • Created 6 years ago
  • Comments:5 (3 by maintainers)

github_iconTop GitHub Comments

1reaction
eddyerburghcommented, Aug 24, 2018

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 👍

0reactions
bliequecommented, Aug 24, 2018

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 to shallowMount 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?

Read more comments on GitHub >

github_iconTop 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 >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found