CommonJS version of module only exports attach
static method
#232
Labels
help wanted
Extra attention is needed
attach
static method
#232
Environment (please complete the following information):
Config of webdriver.io and the reporter
I'm trying to create a custom reporter that extends
wdio-cucumberjs-json-reporter
to overload some behaviors.Describe the bug
The problem occurs when trying to import
CucumberJsJson
from a file imported as a commonJS module because as you can see in this file ofwdio-cucumberjs-json-reporter
, the commonJS version of the module only exports theattach
static method.The created reporter is so invalid and does not contain methods like
emit
or others that should be inherited from WDIO as in the "non commonJS" version.To Reproduce
Import
wdio-cucumberjs-json-reporter
from a commonJS module, you will see that onlyattach
method is available.Expected behavior
Both "non commonJS" and commonJS versions of this module should export the same api.
Thank you
The text was updated successfully, but these errors were encountered: