-
Notifications
You must be signed in to change notification settings - Fork 125
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
TypeError: Class constructor CucumberJSAllureFormatter cannot be invoked without 'new' #29
Comments
Did you update commons to beta.4? |
@sseliverstov Do you mean this
This showed
|
@sseliverstov will you release any no beta version for this component soon?. At least I could use it with typescript. Thank you. |
What you're seeing is most likely related to a bug in babel: babel/babel#7022 See this thread for some potential solutions based on your case: sequelize/sequelize#7840 (comment) |
Might be late but I managed to make it work with const CucumberJSAllureFormatter = require('allure-cucumberjs').CucumberJSAllureFormatter;
const AllureRuntime = require('allure-cucumberjs').AllureRuntime;
/**
* Allure Reporter class
* @class
*/
class Reporter extends CucumberJSAllureFormatter {
/**
* Create a allure report.
* @param {Object} options - Allure options.
*/
constructor(options) {
super(
options,
new AllureRuntime({resultsDir:"./out/allure-results"}),
{
labels: {
issue: [/@bug_(.*)/],
epic: [/@feature:(.*)/],
},
},
);
}
}
exports.default = Reporter; |
I can still see the issue, it's preventing me to update to "cucumber": "^6.0.5" |
this one right
see README.md |
It's working for typescript configuration but not for Java script config.
Same issue when you use versions:
Next Configuration
Related issue: korobochka/cucumberjs-allure2-reporter#4
The text was updated successfully, but these errors were encountered: