browserstack / wdio-browserstack-reporter

0 stars 11 forks source link

Capturing the object using _this to reference the object correctly inside write() #3

Open v0q opened 5 years ago

v0q commented 5 years ago

As write(...) is called from a listener function, the context for "this" doesn't refer to the original reporter meaning that this.options will always be undefined. This leads to outputDir not being used and reports always ending up in ./browserstack-reports/