Notice: The Monaca & Onsen UI Community Forum is shutting down.
For Onsen UI bug reports, feature requests and questions, please use the Onsen UI GitHub issues page. For help with Monaca, please contact Monaca Support Team.
Thank you to all our community for your contributions to the forum. We look forward to hearing from you in the new communication channels.
How are you testing React Onsen Apps?
mpkelly last edited by
What is the recommended way to test Onsen React apps? Or even just Onsen apps, in general. I am hoping to use something like Enzyme, which, unfortunately, does not work (see thread below) and nor does the proposed workaround. I also don’t want to maintain patch logic just to get some unit tests to run. But, ideally, I wanted something that can run quickly and isn’t too heavyweight.
Can anyone recommend something?
Everything that relies on jsDOM, unfortunately, won’t work. Anything with Chrome Headless or Selenium should be fine since it’s what we use to do unit tests and e2e tests.
There’s also some DOM implementations like undom that supports Custom Elements if I’m not mistaken. Perhaps it could be used with Jest, for example.