After running autotest instead of getting mochawesome report I get "Problem with mochawesome: TypeError: Cannot set property 'testsRegistered' of undefined"
I've tried to update to "mochawesome": "^4.1.0" and reinstall package but these didn't help
Need to install mocha globally. That solved my issue