Closed PMK closed 7 years ago
How are you loading JSDOM?
I used your component and test in an avoriaz-ava example using JSDOM 11 and it's passing - https://github.com/eddyerburgh/avoriaz-ava-example/tree/jsdom-11-example
Thanks for the demo you provided. I do not know what the problem was, but it works without errors. I updated jsdom to 11.1.0 and Avoriaz to 2.4.2, I removed the complete node_modules directory and it seems working.
Hi,
For my new project I used this project along with jsdom version 11 and results in an error. When using the jsdom version what avoriaz supports (^9.9.1), the error will not occur. Sadly, you cannot use avorias with Nuxt because Nuxt uses version 11.
I'm using node 8.1.2 and npm 5.0.4. Note: I'm using AVA version 0.19.1 for my tests.
My example component
Example test
Error about the .find() function
Error about the .html() function
Probably jsdom is breaking avoriaz somehow... See https://github.com/tmpvar/jsdom/commit/58a7028d0d5b6aacc5b435daee9fd8f9eacbb14c