Hi,
When writing my tests scripts lately, I encountered a problem with jsdom when following the official guide.
Problem is: TypeError: jsdom.createVirutalConsole() is not a function.
Indeed, jsdom
does not have a method named createVirtualConsole
. I guess it was renamed VirtualConsole
as one can see here. So I tried and changed that but then I encountered another error: [TypeError: jsdom.env is not a function]
.
Maybe nuxt needs an update on this?
If so, I think I could do it but it would take some time since I do not completely understand jsdom and I would need to dive into nuxt code.
<!--cmty--><!--cmty_prevent_hook--><div align="right"><sub><em>This question is available on <a href="https://nuxtjs.cmty.io">Nuxt.js</a> community (<a href="https://nuxtjs.cmty.io/nuxt/nuxt.js/issues/c643">#c643</a>)</em></sub></div>