Closed mparpaillon closed 7 years ago
change "sync" property to true, add "asyncOnly" of "mochaOpts" to true
You answered your own question already. Both options together makes no sense.
Closing as it has nothing to do with wdio-screenshot.
PS: Have a look at https://github.com/zinserjan/webdriverio-example. If you don't want the async/await stuff, just set sync:true in wdio.conf and remove all async/await.
Also there is a gitter chat for webdriverio to ask questions like this:
I tried every combinations of those optios (but indeed this one was stupid). Anyway I managed to make it work by just making everything synchronous. wdio-screenshot uses async/await apparently and once transpiled doesn't seem to return a Promise. So I just set a ridiculously huge timeout and make it all synchronous. No more errors... Thanks for the lib
I'm trying to make it work with the mocha framework, but I can't get it to work.
I keep on having this error
I've been trying to change "sync" property to true, add "asyncOnly" of "mochaOpts" to true too, and my test looks like that
Would love some help, thx :)